Questions tagged [jodatime]
Joda-Time provides a quality replacement for the Java date and time classes. The design allows for multiple calendar systems, while still providing a simple API.
10 questions
5 votes
3 answers
1k views
Check if current time is within the timeframe using Joda-Time
Novice Java developer here. I've never really used a time/date library before and I'm curious how an experienced developer would solve this. You're given 4 ints: startHour, startMinute, endHour and ...
2 votes
1 answer
19k views
Check if the user is 18 years old (upto days)
This code is returning 'true' for any date which are later than Feb 24, 1998. ...
6 votes
1 answer
2k views
Summing two time periods using JodaTime
I'm building a Java method to sum arithmetically two time periods, using the JodaTime library. My code works fine, but I think that it's possible optimize to reduce the time execution. ...
3 votes
2 answers
36k views
Converting timedate timezones with Joda-Time
I've been struggling to get to grips with Joda-Time, but feel that I've finnaly managed to get a grip on some of the functionality that I need. I have written a function that will convert a ...
2 votes
2 answers
521 views
At most one LocalDate per month in a list
I'm implementing argument check in a method where one parameter is a List of LocalDate objects (from Joda-Time). I want to make ...