public final class MeridianHour extends Object
Constructor and Description |
---|
MeridianHour(int hour,
String meridian) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getHour() |
String |
getMeridian() |
int |
hashCode() |
static MeridianHour |
parseMeridianHour(String twentyFourHour)
Takes a 24 hour time and parses the 12 hour time with meridian indicator into a MeridianHour object.
|
public MeridianHour(int hour, String meridian)
public int getHour()
public String getMeridian()
public static MeridianHour parseMeridianHour(String twentyFourHour)
twentyFourHour
- a time value in 24 hour format ("0" - "23").Copyright © 2002-2015 Atlassian. All Rights Reserved.