python学习

import _datetime
import time
#print(datetime.date.fromtimesttmp)
#print(datetime.date.today())
current_time = _datetime.datetime.now()
print(current_time)
print(_datetime.datetime.now() - _datetime.timedelta(hours=10))
print(current_time.replace(2013,9,12))

 

posted @ 2017-05-11 09:48  靠岸啊啊  阅读(121)  评论(0编辑  收藏  举报