Skip to main content

datetime2

https://readthedocs.org/projects/datetime2/badge/?version=stable https://img.shields.io/pypi/v/datetime2.svg https://img.shields.io/pypi/status/datetime2.svg https://img.shields.io/pypi/pyversions/datetime2.svg Build Status https://img.shields.io/pypi/l/datetime2.svg

The datetime2 module provides similar features to those given by the standard datetime module, adding the capability of constructing and representing date and time in many formats. Additionally, it removes a few limits that the original package has.

datetime2 is a one-man, free-time work. Project is hosted at GitHub, please follow the source code link on the right to see the latest version of this page (e.g. for an updated release map).

Current and future releases

Current:

  • 0.9.4: Implementation of WesternTimeDelta

Planned:

  • 1.0: Implementation of DateTime, first production release

  • 1.1: Implementation of Julian and Hebrew calendars

Project objectives

  • Decoupling between operations on date and time objects and their representation.

  • Access to different calendars, for input parsing and output formatting.

  • Access to different time representations, also for input and output.

  • Infinite precision in converting between different time representations.

  • Ability to dynamically register new formatting classes.

  • Internationalization.

  • Implementation of the part of the Unicode Locale Database concerned with dates and times.

  • Interface with other Python modules or inclusion of their functionalities in submodules.

These objectives are very long term ones, which I am setting because I think it is important to establish a direction for the project.

License

Datetime2 is distributed under the terms of the new BSD license. You are free to use it for commercial or non-commercial projects with little or no restriction, all I ask is that:

  • Redistributions of the code, in whole or part, retain the original copyright notice and license text.

  • You do not claim my endorsement of any derived product.

For a complete text of the license see the LICENSE.txt file in the source distribution.

Metadata

Release files for datetime2 0.9.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datetime2 0.9.4
File Size Uploaded
datetime2-0.9.4.tar.gz 13.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datetime2 0.9.4
File Interpreter ABI Platform
datetime2-0.9.4-py3-none-any.whl Python 3 none any Details

Total release size: 31.2 kB

Release files / datetime2-0.9.4.tar.gz

Download URL datetime2-0.9.4.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8daa07b2e71b2cdddc5dd0083bfa3f38403e9557978e9e9925d336d5915df9b8
BLAKE2b-256 checksum
How to use checksums
defe587d61692a9cf6ebaf1ac028a17a200ed3a4f6922a977598cbc3e3e2ec27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / datetime2-0.9.4-py3-none-any.whl

Download URL datetime2-0.9.4-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1eddb7adc65a541556570d9023614b1f66faa367f3d8e9fec1378e1446e31be
BLAKE2b-256 checksum
How to use checksums
9d1276fed13c91959d8fc7773b1a25f4f3cf452534337ef7c95eb5976d140a92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.9.4 This release

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.6.7

1 release file

0.6.6

1 release file

0.6.4

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6

1 release file

0.4

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.1.1

1 release file

0.1plan

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page