Last active
October 20, 2016 11:13
-
-
Save alittlesliceoftom/85414bf9cddc577473df24a49f2b27f7 to your computer and use it in GitHub Desktop.
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.parser import parse | |
from datetime import timedelta | |
# | |
firstdate= parse('2010-04-01') | |
lastdate = parse('2016-04-02') | |
start = firstdate | |
end = min(firstdate+timedelta(months = 1),lastdate) | |
main(start, end) | |
while end < lastdate: | |
print('start =') | |
print (start) | |
print ('end = ') | |
print(end) | |
start = start +timedelta(months = 1) | |
end = min(end + timedelta(months=1), lastdate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment