class datetime – Information about a date and time
- class datetime.datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0)
A datetime object is a single object containing all the information from a
date
object and atime
object.Other constructors:
- classmethod fromisoformat()
- classmethod fromordinal()
- classmethod fromtimestamp()
- classmethod now()
NOT IMPLEMENTED
- classmethod combine()
- classmethod strptime()
NOT IMPLEMENTED
Class attributes:
Instance attributes:
- year
- month
- day
- hour
- minute
- second
- microsecond
- tzinfo
- fold
Instance methods:
- replace()
- tuple()
- time()
- astimezone()
- date()
- dst()
- isoformat()
- isoweekday()
Return the day of the week as an integer, where Monday is 1 and Sunday is 7.
- weekday()
Return the day of the week as an integer, where Monday is 0 and Sunday is 6.
- timetuple()
- timetz()
- toordinal()
- tzname()
- utcoffset()