Package com.atlassian.jira.util
Class MeridianHour
java.lang.Object
com.atlassian.jira.util.MeridianHour
Holder of a 12 hour time with a meridian indicator (am/pm).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetHour()inthashCode()static MeridianHourparseMeridianHour(String twentyFourHour) Takes a 24 hour time and parses the 12 hour time with meridian indicator into a MeridianHour object.
-
Constructor Details
-
MeridianHour
-
-
Method Details
-
getHour
public int getHour() -
getMeridian
-
parseMeridianHour
Takes a 24 hour time and parses the 12 hour time with meridian indicator into a MeridianHour object.Be aware that 12:00 is 12pm (noon), 00:00 is 12am and 24:00 doesn't exist.
- Parameters:
twentyFourHour- a time value in 24 hour format ("0" - "23").- Returns:
- a MeridianHour representing the given time or null on arse failure.
-
equals
-
hashCode
public int hashCode()
-