ttcal - calendar operations
Project description
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
Release history Release notifications | RSS feed
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.5.tar.gz
(14.6 kB
view details)
Built Distribution
ttcal-2.0.5-py2.py3-none-any.whl
(18.4 kB
view details)
File details
Details for the file ttcal-2.0.5.tar.gz
.
File metadata
- Download URL: ttcal-2.0.5.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e622b806bd240a9dca7494e018d9f6a9ac5ecc43b77cd0f688cce3f87858340e |
|
MD5 | 5bf1903fb8c13e25fccfa094c29cd12f |
|
BLAKE2b-256 | 8597e5534ced2805fb799e85d726890e263d8ede5bc2b71f1be85f21253599fe |
File details
Details for the file ttcal-2.0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: ttcal-2.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8171bcc56d2a1ba21f34a53ce27fedd49c84a437df24659817a678e28144a364 |
|
MD5 | f322276cc0d86c201aa34d1d1aaf69c4 |
|
BLAKE2b-256 | d4e1b248da780cfb2439de59c13cfe9f33e4054e0548a3dc49bd899ab029fb03 |