datetime.datetime.weekday()

datetime.weekday() Return the day of the week as an integer, where Monday is 0 and Sunday is 6. The same as self.date().weekday(). See also isoweekday().

datetime.datetime.utctimetuple()

datetime.utctimetuple() If datetime instance d is naive, this is the same as d.timetuple() except that tm_isdst is forced to 0 regardless of what d.dst() returns. DST is never in effect for a UTC time. If d is aware, d is normalized to UTC time, by subtracting d.utcoffset(), and a time.struct_time for the normalized time is returned. tm_isdst is forced to 0. Note that an OverflowError may be raised if d.year was MINYEAR or MAXYEAR and UTC adjustment spills over a year boundary.

datetime.datetime.utcoffset()

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

classmethod datetime.utcnow() Return the current UTC date and time, with tzinfo None. This is like now(), but returns the current UTC date and time, as a naive datetime object. An aware current UTC datetime can be obtained by calling datetime.now(timezone.utc). See also now().

datetime.datetime.utcfromtimestamp()

classmethod datetime.utcfromtimestamp(timestamp) Return the UTC datetime corresponding to the POSIX timestamp, with tzinfo None. This may raise OverflowError, if the timestamp is out of the range of values supported by the platform C gmtime() function, and OSError on gmtime() failure. It’s common for this to be restricted to years in 1970 through 2038. To get an aware datetime object, call fromtimestamp(): datetime.fromtimestamp(timestamp, timezone.utc) On the POSIX compliant platforms, it

datetime.datetime.tzname()

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

datetime.datetime.tzinfo

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

datetime.datetime.toordinal()

datetime.toordinal() Return the proleptic Gregorian ordinal of the date. The same as self.date().toordinal().

datetime.datetime.today()

classmethod datetime.today() Return the current local datetime, with tzinfo None. This is equivalent to datetime.fromtimestamp(time.time()). See also now(), fromtimestamp().

datetime.datetime.timetz()

datetime.timetz() Return time object with same hour, minute, second, microsecond, and tzinfo attributes. See also method time().