Class Overview
Holder of a 12 hour time with a meridian indicator (am/pm).
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
MeridianHour
(int hour, String meridian)
Public Methods
public
boolean
equals
(Object o)
public
static
MeridianHour
parseMeridianHour
(String twentyFourHour)
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.