python 日期、时间戳转换

获取当前日期:

from datetime import datetime

IN:datetime.now()
OUT:datetime(2016,10,19,6,51,21,72341)

转化为字符串显示:

str(datetime.now)

 http://stackoverflow.com/questions/415511/how-to-get-current-time-in-python

posted @ 2016-10-19 07:30  tornytooo  阅读(1555)  评论(0编辑  收藏  举报