Skip to main content

ttcal - calendar operations

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
>>>

Metadata

Release files for ttcal 2.0.9

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

Source distribution (sdist)

Source distribution for ttcal 2.0.9
File Size Uploaded
ttcal-2.0.9.tar.gz 26.3 kB Details

Built distribution (wheel)

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

Total release size: 50.7 kB

Release files / ttcal-2.0.9.tar.gz

Download URL ttcal-2.0.9.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2a836b107034e931bc73b4ceede9c082d94911b54917cc456753d0390ab03300
BLAKE2b-256 checksum
How to use checksums
7d66c469e520bb36789fdbbcb5f0a24fca2fe38ab15578cc179590af453336c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / ttcal-2.0.9-py3-none-any.whl

Download URL ttcal-2.0.9-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66d39c1cf6df2762484ada1bbae9d35d265064333e5a87f6e5cb70cb2b971956
BLAKE2b-256 checksum
How to use checksums
a4038ce5b182706576c41b27a544b09b3bd19d6bd0f2126a977b361da1f83692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

2.0.9 This release

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.1

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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