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
15 *\t15

May Sun+2\t05/Sun+2

Project details

Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
bsd-calendar-0.0.0.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page