import datetime
# Since I wish to do reservation on 12 Sept 2010
d = datetime.datetime(2010,09,12)
# I can do reservation 90 days before
b = datetime.timedelta(90)
# The day when I can do reservation is
print d - b
Saturday, June 12, 2010
Calculating time difference for reservations using Python
Posted by linuxtechie at 11:18 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment