Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- d0 = datetime.date(1958, 8, 4)
- d1 = datetime.date(2013, 8, 4)
- delta = d1 - d0
- # Monday is 0 and Sunday is 6.
- print("%i days ago. Weekday was %s." % (delta.days, d0.weekday()))
Add Comment
Please, Sign In to add comment