
datetime — Basic date and time types — Python 3.13.5 …
datetime — Basic date and time types ¶ Source code: Lib/datetime.py The datetime module supplies classes for manipulating dates and times. While date and time arithmetic is …
DateTime Objects — Python 3.13.5 documentation
1 day ago · Return a datetime.datetime object with the specified year, month, day, hour, minute, second and microsecond. PyObject *PyDateTime_FromDateAndTimeAndFold(int year, int …
Data Types — Python 3.13.5 documentation
1 day ago · The modules described in this chapter provide a variety of specialized data types such as dates and times, fixed-type arrays, heap queues, double-ended queues, and enumerations. …
time — Time access and conversions — Python 3.13.5 …
This module provides various time-related functions. For related functionality, see also the datetime and calendar modules. Although this module is always available, not all functions are …
zoneinfo — IANA time zone support — Python 3.15.0a0 …
ZoneInfo is a concrete implementation of the datetime.tzinfo abstract base class, and is intended to be attached to tzinfo, either via the constructor, the datetime.replace method or …
Programming FAQ — Python 3.13.5 documentation
2 days ago · from datetime import date class FirstOfMonthDate(date): "Always choose the first day of the month" def __new__(cls, year, month, day): return super().__new__(cls, year, …