Ubuntu 下用python 获取当前时间 的方法
来源:互联网 发布:高中数学矩阵与变换 编辑:程序博客网 时间:2024/06/05 23:54
>>> import time
>>> time.asctime()
'Mon Nov 26 16:49:07 2012'
如果想知道 time 模块的其他函数,可以用一下命令查询:(前提是已经执行了:import time语句)
>>> help(time)
结果:
Functions:
time() -- return current time in seconds since the Epoch as a float
clock() -- return CPU time since process start as a float
sleep() -- delay for a number of seconds given as a float
gmtime() -- convert seconds since Epoch to UTC tuple
localtime() -- convert seconds since Epoch to local time tuple
asctime() -- convert time tuple to string
ctime() -- convert time in seconds to string
mktime() -- convert local time tuple to seconds since Epoch
strftime() -- convert time tuple to string according to format specification
strptime() -- parse string to time tuple according to format specification
tzset() -- change the local timezone
- Ubuntu 下用python 获取当前时间 的方法
- 关于python获取当前时间的方法
- 用python 获取当前时间
- 获取当前时间的方法
- 获取当前时间的方法
- 关于linux下获取系统当前时间的方法汇总
- python 获取当前时间等方法(转)
- linux 下获取当前时间方法
- 获取当前时间的下一天时间
- python获取当前脚本下的所有方法
- python 获取当前时间
- Python 获取当前时间
- python 获取当前时间
- python 获取当前时间
- python 获取当前时间
- Python 获取当前时间
- python 获取当前时间
- python 获取当前时间
- NTFS-3G的安装和配置
- linux下c函数库安装(usp4o)
- remove_if
- onCreate中的savedInstanceState有何具体作用
- sysfs与kobject交互
- Ubuntu 下用python 获取当前时间 的方法
- 单页应用详解——(5)创建视图
- 第十二周 C# 试验 《 2 》 .
- 真机terminate called after throwing an instance
- PHP二维码生成的方法(google APi,PHP类库,libqrencode等)
- gridview中positon=0時 getview方法多次加載問題
- 记录一些自定义php函数
- 字符串反转函数,不定义局部变量,不使用库函数,不使用递归
- KVC,KVO学习