Skip to main content

ttcal - calendar operations

Project description

https://github.com/datakortet/ttcal/actions/workflows/ci-cd.yml/badge.svg https://github.com/datakortet/ttcal/actions/workflows/apidocs.yml/badge.svg https://github.com/datakortet/ttcal/actions/workflows/codeql-analysis.yml/badge.svg https://codecov.io/gh/datakortet/ttcal/branch/master/graph/badge.svg?token=rG43wgZ3aK Downloads

This is a small library for calendar operations.

Usage:

>>> from ttcal import *
>>> Today()
2023-7-2-7
>>> Today() + 1
2023-7-3-7
>>> import datetime
>>> isinstance(Today(), datetime.date)
True
>>> Day(1991, 2, 20)
1991-2-20-2
>>> Month()
Month(2023, 7)
>>> Month() + 2
Month(2023, 9)
>>> Year()
Year(2023)
>>> Year() + 2
Year(2025)
>>> Day(2024, 2, 29)
2024-2-29-2
>>> Day(2024, 2, 29) + Period(months=2)
2024-4-29-4
>>> Day(2024, 4, 30) - Period(months=2)
2024-2-29-2
>>>

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

ttcal-2.0.9.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

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

ttcal-2.0.9-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file ttcal-2.0.9.tar.gz.

File metadata

  • Download URL: ttcal-2.0.9.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for ttcal-2.0.9.tar.gz
Algorithm Hash digest
SHA256 2a836b107034e931bc73b4ceede9c082d94911b54917cc456753d0390ab03300
MD5 0b12bec364fd5563dadb3ff1ce5c1da6
BLAKE2b-256 7d66c469e520bb36789fdbbcb5f0a24fca2fe38ab15578cc179590af453336c0

See more details on using hashes here.

File details

Details for the file ttcal-2.0.9-py3-none-any.whl.

File metadata

  • Download URL: ttcal-2.0.9-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for ttcal-2.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 66d39c1cf6df2762484ada1bbae9d35d265064333e5a87f6e5cb70cb2b971956
MD5 f0763518ba62d8a3bb3af102ddee2c9e
BLAKE2b-256 a4038ce5b182706576c41b27a544b09b3bd19d6bd0f2126a977b361da1f83692

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