A class for time handling. For general usage, see the description of chrono.Date in the Usage section, which works in much the same way as chrono.Time.
Valid values for time can be:
The class can also be instantiated using the keyword arguments hour, minute, and second:
Time(hour=16, minute=27, second=43)
If both time and keywords are specified, time takes precedence.
Makes sure the object has a full time set, ie the attributes chrono.Time.hour, chrono.Time.minute, and chrono.Time.second are not None.
Raises chrono.error.NoDateTimeError on missing attributes.
Formats the time using template, replacing variables as supported by chrono.formatter.Formatter.
Raises chrono.error.NoDateTimeError on missing time data.
Returns the time as a tuple of hour, minute, and second.
Raises chrono.error.NoDateTimeError on missing time data.
Returns a datetime.time instance based on the time.
Raises chrono.error.NoDateTimeError on missing time data.
Returns a string represenation (hh:mm:ss) of the time.
Raises chrono.error.NoDateTimeError on missing time data.
Sets the time.
Raises chrono.error.HourError, chrono.error.MinuteError, or chrono.error.SecondError for invalid values.
Sets the time from a string. For valid formats, see the chrono.parser.ISOParser documentation.
Raises chrono.error.ParseError for invalid input format, TypeError for invalid input type, and chrono.error.HourError, chrono.error.MinuteError, or chrono.error.SecondError for invalid time values.