Created
January 5, 2014 09:28
-
-
Save vejuhust/8266225 to your computer and use it in GitHub Desktop.
List past 20 days
This file contains 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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
from datetime import datetime | |
from datetime import timedelta | |
now = datetime.now() | |
delta_day = timedelta(days = -1) | |
for i in range(21): | |
now += delta_day | |
print now.strftime("%b %d, %Y %a") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment