首页 > 编程语言 > 详细

Python 学习6

时间:2016-10-05 07:17:41      阅读:211      评论:0      收藏:0      [点我收藏+]

Time module:

1. Time() meaning how many second passed after year 1970.(epoch)

2. Gmtime()(takes one argument) function convert the timestamp to struct_time class. The following table shows the property of the class

技术分享

 

3. If we would like to use strftime() function. we have get the time first.

4. If we are using datetime instance, we will get a series of number instead of string.    datetime.datetime(2015, 12, 31, 0, 0)

Python 学习6

原文:http://www.cnblogs.com/kingoscar/p/5931681.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!