Skip to main content

Tiny date helper library - get today, yesterday, tomorrow, weekday, etc.

Project description

datetoolz

Tiny date helper library - get today, yesterday, tomorrow, weekday, etc.

Install (editable)

pip install -e .

Usage

from datetoolz import today, yesterday
print(today())     # 2025-10-20
print(yesterday()) # 2025-10-19

API

  • today() -> str: ISO date YYYY-MM-DD
  • yesterday() -> str: ISO date YYYY-MM-DD
  • tomorrow() -> str: ISO date YYYY-MM-DD
  • weekday(fmt: Literal["name","abbr","index"]) -> str | int

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

datetoolz-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

datetoolz-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datetoolz-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for datetoolz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9a56e920b4ca8348c875ae8d80fa567817b9e63f07fae2669a9fdacf2d9580c9
MD5 ed9d8b291972e956d200353f7d25b93f
BLAKE2b-256 27bb46a55d72a0a6a463d176ff8a9d5acd441a7f45f1b016ac33d6b097f572ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datetoolz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for datetoolz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fc500772fada534091ecec6d5ca9a134b25724d933649c7ba5a7c8256dad30d
MD5 4cce9f9ecf1b9e0842d1d2b438911460
BLAKE2b-256 8ed77108395699aab8599bfda94b80d0e958d203a1054d61457936a4d5089e6f

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