kas/doomsday
1
0
Fork
You've already forked doomsday
0
Get doomsday for a given year
  • Python 100%
Find a file
2025年01月03日 19:11:16 +01:00
img Track cover image 2022年07月07日 11:52:13 +02:00
src Sort imports 2025年01月03日 19:11:16 +01:00
.gitignore Ignore jed's backup files 2015年08月15日 12:26:40 +02:00
AUTHORS.md Initial commit 2015年08月15日 12:29:13 +02:00
CHANGELOG.md Refer to git log 2022年10月27日 15:39:15 +02:00
LICENSE Initial commit 2015年08月15日 12:22:45 +02:00
README.md Update README to reflect latest version 2022年10月27日 15:35:25 +02:00
TODO.md Github issues → Codeberg issues 2022年10月27日 15:36:39 +02:00

Doomsday

The Doomsday Algorithm gives the day of the week for any date (and you can do it in your head).

Usage

$ doomsday --help
Usage: doomsday [OPTIONS] [YEAR]
positional arguments:
 YEAR year to find doomsday for
optional arguments:
 -h, --help show this help message and exit
 --version show version information and exit
 --copyright show copying policy and exit
 -m, -r, --reminder show doomsday algorithm reminder and exit
 -f FORMAT, --format FORMAT
 date format (default ‘%A’: full weekday name)

Examples

$ doomsday # current year (2022)
Monday
$ doomsday -f '%F' # use a custom format
2022年02月28日
$ doomsday 1968 # 1968, a leap year
Thursday

Requirements

Python 3.5+

Installation

Just drop it somewhere in your $PATH.

Don't worry, be happy 😄