In Python, how do I make a datetime that is 15 minutes from now? 1 hour from now? [duplicate]
Possible Duplicates:
Python - easy way to add N seconds to a datetime.time? How to create a D开发者_StackOverflow中文版ateTime equal to 15 minutes ago?
what's the best way to do this?
d1 = datetime.datetime.now() + datetime.timedelta(minutes=15)
d2 = datetime.datetime.now() + datetime.timedelta(hours=1)
精彩评论