飞机场场长

本博客主要摘录python相关的知识,欢迎参阅。

导航

2012年7月18日 #

python datetime.timedelta(时间差)

摘要: http://hi.baidu.com/paulau/blog/item/22139b08cd6039930a7b82e4.htmlhttp://www.crifan.com/python_time_not_support_timedelta_while_datetime_support/>>> import time, datetime>>> d = datetime.datetime(*time.localtime()[:6])>>> print d2007-09-04 10:10:00>>> d + 15Traceb 阅读全文

posted @ 2012-07-18 14:51 飞机场场长 阅读(4128) 评论(0) 推荐(0)