python time模块

http://wiki.python.org/moin/WorkingWithTime

1 三种数据格式:
seconds:float
tuple
string

2 数据转化

3
In [17]: datetime.datetime.fromtimestamp(time.time())
Out[17]: datetime.datetime(2012, 11, 15, 21, 19, 10, 639881)

你可能感兴趣的:(python)