Metadata-Version: 2.1
Name: ttcal
Version: 2.0.4
Summary: UNKNOWN
Home-page: https://github.com/datakortet/ttcal
Author: Bjorn Pettersen
Author-email: bp@datakortet.no
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
License-File: LICENSE



ttcal - calendar operations
===========================

.. image:: https://github.com/datakortet/ttcal/actions/workflows/ci-cd.yml/badge.svg
   :target: https://github.com/datakortet/ttcal/actions/workflows/ci-cd.yml

.. image:: https://github.com/datakortet/ttcal/actions/workflows/apidocs.yml/badge.svg
   :target: https://datakortet.github.io/ttcal/

.. image:: https://github.com/datakortet/ttcal/actions/workflows/codeql-analysis.yml/badge.svg
   :target: https://github.com/datakortet/ttcal/actions/workflows/codeql-analysis.yml

.. image:: https://codecov.io/gh/datakortet/ttcal/branch/master/graph/badge.svg?token=rG43wgZ3aK
   :target: https://codecov.io/gh/datakortet/ttcal

.. image:: https://pepy.tech/badge/ttcal
   :target: https://pepy.tech/project/ttcal
   :alt: 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
    >>>




