Script to convert between real dates and Oxford term dates
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
oxtermdate.py

README.md

Oxford term dates

You need to set the OXFORD_TERM_START environment variable to the date of the first Sunday of 1st week. In a UNIX environment:

export OXFORD_TERM_START="2017-01-15" # First Sunday of 1st week

You can get these dates from this page

Then run either of the following:

> ./oxtermdate.py 2017-02-14
Tuesday of 5th week
> ./oxtermdate.py Tu5
2017-02-14

The day prefixes are Su, M, Tu, W, Th, F, Sa, date formats need to be ISO 8601.

License

Apache 2.0