码迷,mamicode.com
首页 > 编程语言 > 详细

Python 学习6

时间:2016-10-05 07:18:14      阅读:126      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!