Skip to content

Instantly share code, notes, and snippets.

@ollieparanoid
Last active November 11, 2017 19:31
Show Gist options
  • Save ollieparanoid/7bdb9ee85a7949e4a8bca6fca117cd50 to your computer and use it in GitHub Desktop.
Save ollieparanoid/7bdb9ee85a7949e4a8bca6fca117cd50 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import datetime
d0 = datetime.date.today()
d1 = datetime.date(2017, 5, 26)
delta = d0 - d1
print("days running: " + str(delta.days))
next_big = 200
d2 = d1 + datetime.timedelta(days=next_big)
print("date for " + str(next_big) + " days: " + str(d2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment