Skip to main content

# DATE DAY PREDICTOR

date_day_estimator is a Python package that calculates the day of the week for a given date using Zeller’s Congruence.

## Installation

`bash pip install date-day-estimator `

## Usage

from date_day_estimator.date_day_estimator import zellers_congruence

# Example: Find the day of the week for 5th July 1995 day_number, day_name = zellers_congruence(5, 7, 1995)

print(day_number) # 4 print(day_name) # ‘Wednesday’

## FORMULA

Zeller’s Congruence, which is an algorithm used to calculate the day of the week for any given date. It typically takes the following form:

[ h = left(q + leftlfloor rac{13(m+1)}{5} ight floor + K + leftlfloor rac{K}{4} ight floor + leftlfloor rac{J}{4} ight floor - 2J ight) mod 7 ]

Where: - ( h ) is the day of the week (0 = Saturday, 1 = Sunday, 2 = Monday, etc.), - ( q ) is the day of the month, - ( m ) is the month (March = 3, April = 4, …, February = 14), - ( K ) is the year of the century (i.e., year % 100), - ( J ) is the zero-based century (i.e., year // 100).

Metadata

Release files for date-day-estimator 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for date-day-estimator 0.0.4
File Size Uploaded
date_day_estimator-0.0.4.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for date-day-estimator 0.0.4
File Interpreter ABI Platform
date_day_estimator-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / date_day_estimator-0.0.4.tar.gz

Download URL date_day_estimator-0.0.4.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1677aec9c763fc75b3a4675741724b725700f759a5e49c4c639b4088604ed33a
BLAKE2b-256 checksum
How to use checksums
46a5b09462c121f71e3cfd6ec265414312f58e8f627045aad9481795bd84595a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / date_day_estimator-0.0.4-py3-none-any.whl

Download URL date_day_estimator-0.0.4-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
880fa7bf5be2a367886a4595a2ce6de653015d52ac16fac50f22b5e9a5efadac
BLAKE2b-256 checksum
How to use checksums
81c7a23d24cb0dcb8a323327e2165b2d9f28fd704a73e670107424cd0dec9042
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page