Library that introduces a Day datatype that is universal across every year
Project description
OnlyDay
Python library that introduces a Day datatype that is universal across every year.
A day representing November 3rd will represent the same year-less day across every year. A Day
object representing
November 3rd is valid for both 2020-11-03 and 2022-11-03.
from datetime import datetime
from onlyday import Day
first_date = datetime(year=2022, month=11, day=3)
first_day = Day(first_date)
second_day = Day("1999-11-03")
assert first_day == second_day
assert first_day == first_date
assert second_day == first_date
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
onlyday-0.1.0.tar.gz
(10.0 kB
view details)
Built Distribution
OnlyDay-0.1.0-py3-none-any.whl
(10.2 kB
view details)
File details
Details for the file onlyday-0.1.0.tar.gz
.
File metadata
- Download URL: onlyday-0.1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33168c2636ce540c08648dc8adcf3796ed368d098f9859582582925463eeca5d |
|
MD5 | 1e7e8eb8324c8c53628fab8ac8a541ee |
|
BLAKE2b-256 | 81af954a533d4f91ce5b2dbc71cfd0d2e5e29002bcf99a62dcb0ced5a7f9991f |
File details
Details for the file OnlyDay-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: OnlyDay-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eb59d7095e304b62f624b8e8c76a05d84055bb6083106e7cede3f6facc81f33 |
|
MD5 | d2a20f35aa70f98d28c15e95e70a1c33 |
|
BLAKE2b-256 | 99e2d959dcdb961a177aada2f2d3c107fb90d1b78146e8659b5960542302b756 |