Skip to main content

BSD calendar reimplementation

Project description

The calendar utility reads events from plain text files and outputs today’s events. The files look something like this:

#include <holiday>
#include <birthday>

06/15\tJune 15
Thu\tEvery Thursday.
15\t15th of every month.

05/Sun+2\tsecond Sunday in May (Muttertag)
04/Sun-1\tlast Sunday in April

Easter-2\tGood Friday (2 days before Easter)
Paskha\tOrthodox Easter

This implementation adds some new features while dropping others, most notably, the date formats are not completely compatible:

# added formats
1999/06/15\tJune 15 1999
1999/06/15*\tJune 15 (usefull for birthdays)
1999/05/Sun+2\tsecond Sunday in May 1999
1999/06/15+2\tJune 15 1999 and every second week since then

# removed formats (mostly alternative formats)
Jun. 15\t06/15
15 June\t06/15
Thursday\tThu
June\t06/01
15 *\t15

May Sun+2\t05/Sun+2
04/SunLast\t04/Sun-1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bsd-calendar-0.0.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file bsd-calendar-0.0.0.tar.gz.

File metadata

File hashes

Hashes for bsd-calendar-0.0.0.tar.gz
Algorithm Hash digest
SHA256 258a056c04fb8a5637bfe454dc789074c092eca9b95d24e5f717058dd01b4e91
MD5 9933b09ea6d5bde4b5475d496106d94b
BLAKE2b-256 729d0a1d33c8a8a8aa6d2330269cbf663db586c078f7b1969e8cecdb801dfea8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page