I have a label displaying only the minutes part of a certain hour of the day. I want it to read "PM" or "00", depending on time zone.
My current solution simply uses Joda's DateTimeFormat.shortTime().withLocale(myLocale)
and takes the last 2 characters from the result. This works, but feels wrong.
Instead, I want to check if the given locale uses AM/PM notation, but I haven't found an API call to give me that information. Does it exist, either in JodaTime or the Java libraries themselves? For example, I would like to write something like usesAmPm(myLocale)) ? DateTimeFormat.forPattern("a") : DateTimeFormat.forPattern("mm")