I wanted to convert joda time LocalTime to millis or milliseconds. I saw that the getLocalMillis is a protected method. Looks like there is no method to get the millis value of LocalTime.
So, do I have to get the values of each field in millis and then add them up to get the total millis ? Why does Joda Time not have a public method for getting Local Millis ?
LocalTime does not represent an absolute instant in time, but rather it describes a time of any day for an arbitrary timezone.
LocalTime into an
LocalTime#toDateTimeToday(DateTimeZone) if you're looking for the moment described by that time today. Or if you want that moment on another day, construct the appropriate
LocalDate and see the
LocalDate#toDateTime(...) methods. Then call