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
>>>
Raw data
{
"_id": null,
"home_page": "https://github.com/datakortet/ttcal",
"name": "ttcal",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Bjorn Pettersen",
"author_email": "bp@datakortet.no",
"download_url": "https://files.pythonhosted.org/packages/85/97/e5534ced2805fb799e85d726890e263d8ede5bc2b71f1be85f21253599fe/ttcal-2.0.5.tar.gz",
"platform": null,
"description": "\n\nttcal - calendar operations\n===========================\n\n.. image:: https://github.com/datakortet/ttcal/actions/workflows/ci-cd.yml/badge.svg\n :target: https://github.com/datakortet/ttcal/actions/workflows/ci-cd.yml\n\n.. image:: https://github.com/datakortet/ttcal/actions/workflows/apidocs.yml/badge.svg\n :target: https://datakortet.github.io/ttcal/\n\n.. image:: https://github.com/datakortet/ttcal/actions/workflows/codeql-analysis.yml/badge.svg\n :target: https://github.com/datakortet/ttcal/actions/workflows/codeql-analysis.yml\n\n.. image:: https://codecov.io/gh/datakortet/ttcal/branch/master/graph/badge.svg?token=rG43wgZ3aK\n :target: https://codecov.io/gh/datakortet/ttcal\n\n.. image:: https://pepy.tech/badge/ttcal\n :target: https://pepy.tech/project/ttcal\n :alt: Downloads\n \nThis is a small library for calendar operations.\n\nUsage::\n\n >>> from ttcal import *\n >>> Today()\n 2023-7-2-7\n >>> Today() + 1\n 2023-7-3-7\n >>> import datetime\n >>> isinstance(Today(), datetime.date)\n True\n >>> Day(1991, 2, 20)\n 1991-2-20-2\n >>> Month()\n Month(2023, 7)\n >>> Month() + 2\n Month(2023, 9)\n >>> Year()\n Year(2023)\n >>> Year() + 2\n Year(2025)\n >>> Day(2024, 2, 29)\n 2024-2-29-2\n >>> Day(2024, 2, 29) + Period(months=2)\n 2024-4-29-4\n >>> Day(2024, 4, 30) - Period(months=2)\n 2024-2-29-2\n >>>\n\n\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "ttcal - calendar operations",
"version": "2.0.5",
"project_urls": {
"Homepage": "https://github.com/datakortet/ttcal"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d4e1b248da780cfb2439de59c13cfe9f33e4054e0548a3dc49bd899ab029fb03",
"md5": "f322276cc0d86c201aa34d1d1aaf69c4",
"sha256": "8171bcc56d2a1ba21f34a53ce27fedd49c84a437df24659817a678e28144a364"
},
"downloads": -1,
"filename": "ttcal-2.0.5-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "f322276cc0d86c201aa34d1d1aaf69c4",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 18369,
"upload_time": "2023-07-02T19:59:32",
"upload_time_iso_8601": "2023-07-02T19:59:32.893546Z",
"url": "https://files.pythonhosted.org/packages/d4/e1/b248da780cfb2439de59c13cfe9f33e4054e0548a3dc49bd899ab029fb03/ttcal-2.0.5-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8597e5534ced2805fb799e85d726890e263d8ede5bc2b71f1be85f21253599fe",
"md5": "5bf1903fb8c13e25fccfa094c29cd12f",
"sha256": "e622b806bd240a9dca7494e018d9f6a9ac5ecc43b77cd0f688cce3f87858340e"
},
"downloads": -1,
"filename": "ttcal-2.0.5.tar.gz",
"has_sig": false,
"md5_digest": "5bf1903fb8c13e25fccfa094c29cd12f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 14591,
"upload_time": "2023-07-02T19:59:34",
"upload_time_iso_8601": "2023-07-02T19:59:34.314948Z",
"url": "https://files.pythonhosted.org/packages/85/97/e5534ced2805fb799e85d726890e263d8ede5bc2b71f1be85f21253599fe/ttcal-2.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-02 19:59:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "datakortet",
"github_project": "ttcal",
"travis_ci": true,
"coveralls": true,
"github_actions": true,
"requirements": [],
"lcname": "ttcal"
}