Testing the Current Date/Time in Spring and Java

Keith Shakib Articles, Development Technologies & Tools, Java, Spring, Testing, Tutorial 1 Comment

How often in Java services do we need to use the current date and time? Most of us would agree we use it quite often. Many times, we may want to record when an event happened, such as logging in, sending an invoice, or recording a chat. Other times, we may want to use the current time in a business …

ThreeTen: The Ultimate Future of Java Date/Time…In Progress

David Kieras Articles, Development Technologies & Tools, Java 3 Comments

My last article was entitled Joda-Time: The Future of Java Date/Time and I was pleased to see a lot of discussion on the topic. However, I may well have inappropriately named the article. I suppose I should have called it “Joda-Time: A Glimpse of the Future of Java Date/Time” or “Joda-Time: A Step on the Way to JSR-310.” Thus the …

Joda-Time: The Future of Java Date/Time

David Kieras Articles, Development Technologies & Tools, Java 15 Comments

So how often have you had to work with date/time functions in Java? I mean really WORK with them? I’m not talking about simply setting the current time by instantiating a java.util.Date object or getting a Calendar instance, maybe getting a java.sql.Timestamp from a ResultSet. No, I’m talking about manipulating dates, working in different time zones, and working with dates …