About 50 results
Open links in new tab
  1. datetime — Basic date and time types — Python 3.14.4 documentation

    class datetime.datetime A combination of a date and a time. Attributes: year, month, day, hour, minute, second, microsecond, and tzinfo. class datetime.timedelta A duration expressing the difference …

  2. DateTime Objects — Python 3.14.4 documentation

    3 days ago · DateTime Objects ¶ Various date and time objects are supplied by the datetime module. Before using any of these functions, the header file datetime.h must be included in your source (note …

  3. 8.1. datetime — 基本的日期和时间类型 — Python 2.7.18 文档

    8.1.1. 有效的类型 ¶ class datetime. date 一个理想化的简单型日期,它假设当今的公历在过去和未来永远有效。 属性: year, month, and day。 class datetime. time 一个理想化的时间,它独立于任何特定的 …

  4. time — Time access and conversions — Python 3.14.4 documentation

    time — Time access and conversions ¶ This module provides various time-related functions. For related functionality, see also the datetime and calendar modules. Although this module is always available, …

  5. email.utils: Miscellaneous utilities — Python 3.14.4 documentation

    2 days ago · The default is False. email.utils.format_datetime(dt, usegmt=False) ¶ Like formatdate, but the input is a datetime instance. If it is a naive datetime, it is assumed to be “UTC with no information …

  6. 10. Brief tour of the standard library — Python 3.14.4 documentation

    Nov 11, 2025 · 10.8. Dates and times ¶ The datetime module supplies classes for manipulating dates and times in both simple and complex ways. While date and time arithmetic is supported, the focus …

  7. Python Documentation contents — Python 3.14.4 documentation

    curses datetime distutils fcntl ftplib gc hashlib http IDLE and idlelib imaplib importlib inspect ipaddress math multiprocessing nntplib os pathlib pdb poplib pprint pydoc random signal smtplib socket time …

  8. What’s new in Python 3.14 — Python 3.14.4 documentation

    3 days ago · What’s new in Python 3.14 ¶ Editors: Adam Turner and Hugo van Kemenade This article explains the new features in Python 3.14, compared to 3.13. Python 3.14 was released on 7 October …

  9. unittest.mock — getting started — Python 3.14.4 documentation

    3 days ago · Unfortunately datetime.date is written in C, so you cannot just monkey-patch out the static datetime.date.today() method. Instead, you can effectively wrap the date class with a mock, while …

  10. The Python Standard Library — Python 3.14.4 documentation

    3 days ago · datetime — Basic date and time types zoneinfo — IANA time zone support calendar — General calendar-related functions collections — Container datatypes collections.abc — Abstract …