首页 > 代码库 > Python 学习6
Python 学习6
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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。