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 hashes)
Built Distribution
ttcal-2.0.5-py2.py3-none-any.whl
(18.4 kB
view hashes)
Close
Hashes for ttcal-2.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8171bcc56d2a1ba21f34a53ce27fedd49c84a437df24659817a678e28144a364 |
|
MD5 | f322276cc0d86c201aa34d1d1aaf69c4 |
|
BLAKE2b-256 | d4e1b248da780cfb2439de59c13cfe9f33e4054e0548a3dc49bd899ab029fb03 |