Skip to main content

Date object wrapper supporting infinity

Project description

infdate

Python module for date calculations implementing a concept of infinity

The Date class provided in this package wraps the standard library’s datetime.date class and adds the capability to specify dates in positive (after everything else) or negative (before everything else) infinity, and to do calculations (add days, or subtract days or other Date instances) with these objects.

For easier usage, differences are expressed as integers (1 = one day) or floats (inf and -inf only).

These capabilities can come handy when dealing with API representations of dates, eg. in GitLab’s Personal Access Tokens API.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infdate-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infdate-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file infdate-0.1.0.tar.gz.

File metadata

  • Download URL: infdate-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.13

File hashes

Hashes for infdate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59f759d3b23e24fc079c2cbe73f72386004377863d870f0af6b580e988327ae1
MD5 9f525678d555e0d4d6307ae2c85aca6d
BLAKE2b-256 4f3db18c6cbd7d633f4a2c97483fec8598d243360c0838b325b9a5a7409c91dc

See more details on using hashes here.

File details

Details for the file infdate-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: infdate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.13

File hashes

Hashes for infdate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93b5ec1f4c77127227b8b944f7e88009162ba02f70956d4bc06e8d7ace0dcbcb
MD5 29f4d671c1f498f04126e10d0a10ff2d
BLAKE2b-256 d13dd931453ecb9a24f0c95ca42f78bb68f485018356857c3294e8606b06a8c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page