datetime.time.min

time.min The earliest representable time, time(0, 0, 0, 0).

datetime.time.microsecond

time.microsecond In range(1000000).

datetime.time.max

time.max The latest representable time, time(23, 59, 59, 999999).

datetime.time.isoformat()

time.isoformat() Return a string representing the time in ISO 8601 format, HH:MM:SS.mmmmmm or, if self.microsecond is 0, HH:MM:SS If utcoffset() does not return None, a 6-character string is appended, giving the UTC offset in (signed) hours and minutes: HH:MM:SS.mmmmmm+HH:MM or, if self.microsecond is 0, HH:MM:SS+HH:MM

datetime.time.hour

time.hour In range(24).

datetime.time.dst()

time.dst() If tzinfo is None, returns None, else returns self.tzinfo.dst(None), and raises an exception if the latter doesn’t return None, or a timedelta object representing a whole number of minutes with magnitude less than one day.

datetime.time

class datetime.time(hour=0, minute=0, second=0, microsecond=0, tzinfo=None) All arguments are optional. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments may be integers, in the following ranges: 0 <= hour < 24 0 <= minute < 60 0 <= second < 60 0 <= microsecond < 1000000. If an argument outside those ranges is given, ValueError is raised. All default to 0 except tzinfo, which defaults to None.

datetime.datetime.__str__()

datetime.__str__() For a datetime instance d, str(d) is equivalent to d.isoformat(' ').

datetime.datetime.__format__()

datetime.__format__(format) Same as datetime.strftime(). This makes it possible to specify a format string for a datetime object when using str.format(). For a complete list of formatting directives, see strftime() and strptime() Behavior.

datetime.datetime.year

datetime.year Between MINYEAR and MAXYEAR inclusive.