US 12-hour clock handling.
Converts a 24-hour clock hour to 12-hour. Returns a tuple of hour and a boolean, which if True indicates PM, otherwise AM.
Raises chrono.error.HourError if hour is invalid.
Returns the julian time for the given time, as a float between 0.0 and 1,0.
Raises chrono.error.HourError, chrono.error.MinuteError, or chrono.error.SecondError if hour, minute, or second is invalid.
Converts a julian time as a float between 0 and 1 to a tuple of hour, minute, and second. For values > 0, only the decimal part is used.
Raises chrono.error.TimeError on invalid input.
Converts a 12-hour clock hour to 24-hour. pm is a boolean, which if True indicates time is PM, otherwise AM. Returns the 24-hour clock hour.
Raises chrono.error.HourError if hour is invalid.
Validates a time: hour must be in range 1-12, minute in range 0-59, and second in range 0-59.
Raises chrono.error.HourError, chrono.error.MinuteError, or chrono.error.SecondError if hour, minute, or second is invalid.
Validates an hour: must be in range 1-12.
Raises chrono.error.HourError if hour is invalid.
Validates a minute: must be in range 0-59.
Raises chrono.error.MinuteError is minute is invalid.
Validates a second: must be in range 0-59.
Raises chrono.error.SecondError is second is invalid.