Top "Jodatime" questions

Joda-Time provides a quality replacement for the Java date and time classes.

Joda time - Parsing string throws java.lang.IllegalArgumentException

Shouldn't a String formatted with a specific DateTimeFormatter be able to be parsed using LocalDateTime.parse()? Test DateTimeFormatter formatter = ISODateTimeFormat.…

java jodatime date-formatting date-parsing
How can I mock JodaTime actual date?

I want to test this method: public FirmOrder findActiveByModelColor(ModelColor modelColor) { Query query = em.createQuery("FROM FirmOrder fo WHERE fo.…

java testing mocking jodatime
Joda time, Period to total millis

I'm trying to get the total amount of Milliseconds (not the millis field) from the Period object instance. I've tried …

java jodatime
Joda time - all mondays between two dates

I am using Joda time api in a Spring 3.0 project for the very first time. Now I have a start …

java datetime jodatime days
Java 8 Date equivalent to Joda's DateTimeFormatterBuilder with multiple parser formats?

I currently have a Joda date parser that uses the DateTimeFormatterBuilder with half a dozen different date formats that I …

java jodatime java-time
How do I create a new Joda DateTime truncated to the last hour?

I am pulling timestamps from a file that I want to create a new DateTime for, but I want to …

java datetime truncate jodatime floor
How to create proper DateTimeFormatter Pattern

I am trying to create a DateTimeFormatter object with a pattern to fit this expression of time: 2016-07-22T00:00:00.000…

java datetime format jodatime datetimeformatter
Convert JodaTime duration to string

I have movie with duration 127 seconds. I wanna display it as 02:07. What is the best way to implement this?

jodatime duration
Calculating a time duration with Joda-Time

I'm trying to use Joda-Time in order to know time durations between two points in time, where each point is …

java timezone jodatime dst leap-year
Joda time DateTime incorrectly stores in database

I'm storing JodaTime DateTime field to timestamptz column by using org.jadira.usertype:usertype.jodatime:1.9. App server has +4 time zone. …

hibernate grails groovy gorm jodatime