Midsummer Date
Project description
Midsummer Date Calculator
This Python module calculates the date of Midsummer's Day for a given year. Midsummer's Day typically falls on a Friday between June 20th and June 26th.
Usage
To use this module, simply import the midsummer_date
function and pass the year for which you want to find the Midsummer's Day:
from midsummer import midsummer_date
year = 2024
print(midsummer_date(year))
Functionality
The midsummer_date function calculates the date of Midsummer’s Day for the specified year. If the calculated date does not fall on a Friday, a ValueError is raised.
Exceptions
MidsummerException: Raised if the input year is not an integer or if the date falls outside the expected range. ValueError: Raised if the calculated Midsummer’s Day does not fall on a Friday, as per tradition.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
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
Built Distribution
File details
Details for the file midsummer-0.1.2.tar.gz
.
File metadata
- Download URL: midsummer-0.1.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eab6cf00a363c7cadfca6e5fdf16000ed30437c0000e602db5e259693536121 |
|
MD5 | 67f7c104f5bc698bf49118f98403ed3f |
|
BLAKE2b-256 | fa54fcef3f555a711b61ce1c615f8773737eec84ac56fa033e578f7cb059e09f |
File details
Details for the file midsummer-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: midsummer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78461ad1ec294c92059f695751bbb4734a7b015454b9b2f8072657701be41e45 |
|
MD5 | 5161a34aed6870f57524d90d65702931 |
|
BLAKE2b-256 | 0cf4218662f2d2fda76cf6d86c2e6be98f453f2b02deb03950bb8ac07ce3192c |