datetime.timedelta

class datetime.timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0) All arguments are optional and default to 0. Arguments may be integers or floats, and may be positive or negative. Only days, seconds and microseconds are stored internally. Arguments are converted to those units: A millisecond is converted to 1000 microseconds. A minute is converted to 60 seconds. An hour is converted to 3600 seconds. A week is converted to 7 days. and days, seconds an

datetime.time.__str__()

time.__str__() For a time t, str(t) is equivalent to t.isoformat().

datetime.time.tzname()

time.tzname() If tzinfo is None, returns None, else returns self.tzinfo.tzname(None), or raises an exception if the latter doesn’t return None or a string object.

datetime.time.utcoffset()

time.utcoffset() If tzinfo is None, returns None, else returns self.tzinfo.utcoffset(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.strftime()

time.strftime(format) Return a string representing the time, controlled by an explicit format string. For a complete list of formatting directives, see strftime() and strptime() Behavior.

datetime.time.tzinfo

time.tzinfo The object passed as the tzinfo argument to the time constructor, or None if none was passed.

datetime.time.second

time.second In range(60).

datetime.time.resolution

time.resolution The smallest possible difference between non-equal time objects, timedelta(microseconds=1), although note that arithmetic on time objects is not supported.

datetime.time.replace()

time.replace([hour[, minute[, second[, microsecond[, tzinfo]]]]]) Return a time with the same value, except for those attributes given new values by whichever keyword arguments are specified. Note that tzinfo=None can be specified to create a naive time from an aware time, without conversion of the time data.

datetime.time.minute

time.minute In range(60).