other.doomsday

Attributes

DOOMSDAY_LEAP

DOOMSDAY_NOT_LEAP

WEEK_DAY_NAMES

Functions

get_week_day(→ str)

Returns the week-day name out of a given date.

Module Contents

other.doomsday.get_week_day(year: int, month: int, day: int) str

Returns the week-day name out of a given date.

>>> get_week_day(2020, 10, 24)
'Saturday'
>>> get_week_day(2017, 10, 24)
'Tuesday'
>>> get_week_day(2019, 5, 3)
'Friday'
>>> get_week_day(1970, 9, 16)
'Wednesday'
>>> get_week_day(1870, 8, 13)
'Saturday'
>>> get_week_day(2040, 3, 14)
'Wednesday'
other.doomsday.DOOMSDAY_LEAP = [4, 1, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
other.doomsday.DOOMSDAY_NOT_LEAP = [3, 7, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
other.doomsday.WEEK_DAY_NAMES