Last active
January 24, 2018 10:13
-
-
Save imankulov/4d83c350766e8e4f78f85f319e6693b1 to your computer and use it in GitHub Desktop.
Print the date of the next PyCoffee meetup in Porto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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