Joda-Time, Time without date

java, jodatime

Solution

There's the `LocalTime` class for that purpose.

Read more about partials here. E.g.:

LocalTime time = new LocalTime(12, 20);
String formatted = time.toString("HH:mm");

Problem

I want a Class that only stores the time and not the date or day. Is there a class for this in Joda-Time ? or do I have to use a Date time and convert only the time part into a string and then use that part ?

Original source