datetime.datetime.dst()

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

datetime.day Between 1 and the number of days in the given month of the given year.

datetime.datetime.date()

datetime.date() Return date object with same year, month and day.

datetime.datetime.ctime()

datetime.ctime() Return a string representing the date and time, for example datetime(2002, 12, 4, 20, 30, 40).ctime() == 'Wed Dec  4 20:30:40 2002'. d.ctime() is equivalent to time.ctime(time.mktime(d.timetuple())) on platforms where the native C ctime() function (which time.ctime() invokes, but which datetime.ctime() does not invoke) conforms to the C standard.

datetime.datetime.combine()

classmethod datetime.combine(date, time) Return a new datetime object whose date components are equal to the given date object’s, and whose time components and tzinfo attributes are equal to the given time object’s. For any datetime object d, d == datetime.combine(d.date(), d.timetz()). If date is a datetime object, its time components and tzinfo attributes are ignored.

datetime.datetime.astimezone()

datetime.astimezone(tz=None) Return a datetime object with new tzinfo attribute tz, adjusting the date and time data so the result is the same UTC time as self, but in tz‘s local time. If provided, tz must be an instance of a tzinfo subclass, and its utcoffset() and dst() methods must not return None. self must be aware (self.tzinfo must not be None, and self.utcoffset() must not return None). If called without arguments (or with tz=None) the system local timezone is assumed. The .tzinfo att

datetime.datetime

class datetime.datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None) The year, month and day arguments are required. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments may be integers, in the following ranges: MINYEAR <= year <= MAXYEAR 1 <= month <= 12 1 <= day <= number of days in the given month and year 0 <= hour < 24 0 <= minute < 60 0 <= second < 60 0 <= microsecond < 1000000 If an ar

datetime.date.__str__()

date.__str__() For a date d, str(d) is equivalent to d.isoformat().

datetime.date.__format__()

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

datetime.date.year

date.year Between MINYEAR and MAXYEAR inclusive.