zfoxatis

python32.timeline

Oct 31st, 2011
116
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/local/bin/python 3.2
  2. # -*- coding: utf-8 -*-
  3.  
  4. import datetime
  5.  
  6. print([(datetime.date(2011,11,29)+datetime.timedelta(nap)).isoformat()
  7.        for nap in range(1,(datetime.date(2012,12,31)-datetime.date(2011,11,29)).days,)
  8.        if nap%4==0])
  9.  
RAW Paste Data