HourMarker
represents the two 12-hour periods of the day: am
for hours between 12:00 AM and
11:59 AM, and pm
for hours between 12:00 PM and 11:59 PM.
- am : HourMarker
Ante meridiem.
- pm : HourMarker
Post meridiem.
Instances For
ofOrdinal
converts an Hour.Ordinal
value to an HourMarker
, indicating whether it is AM or PM.
Equations
Instances For
Converts a 12-hour clock time to a 24-hour clock time based on the HourMarker
.