Skip to content

Instantly share code, notes, and snippets.

@imankulov
Last active January 24, 2018 10:13
Show Gist options
  • Save imankulov/4d83c350766e8e4f78f85f319e6693b1 to your computer and use it in GitHub Desktop.
Save imankulov/4d83c350766e8e4f78f85f319e6693b1 to your computer and use it in GitHub Desktop.
Print the date of the next PyCoffee meetup in Porto
from dateutil.rrule import rrule, WEEKLY
from datetime import datetime as dt
r = rrule(WEEKLY, interval=2, dtstart=dt(2018, 1, 27, 10))
print(r.after(dt.utcnow()).strftime('%A, %d %B at %H%p'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment