python 获取当前时间
2014-05-25 13:38
369 查看
# -*- coding: cp936 -*- #%y 两位数的年份表示(00-99) #%Y 四位数的年份表示(000-9999) #%m 月份(01-12) #%d 月内中的一天(0-31) #%H 24小时制小时数(0-23) #%I 12小时制小时数(01-12) #%M 分钟数(00=59) #%S 秒(00-59) import time print time.strftime('%Y-%m-%d',time.localtime(time.time()))
相关文章推荐
- python 获取当前时间
- Python 获取当前时间
- python 获取当前时间
- python 获取当前时间等方法(转)
- python获取当前时间
- 转载 用python 获取当前时间
- python 获取当前时间
- python 获取当前时间
- python 获取当前时间
- python 获取当前时间
- 用python 获取当前时间
- python 获取当前时间
- python 获取当前时间
- python练习程序(获取系统当前时间)
- Ubuntu 下用python 获取当前时间 的方法
- python读配置文件;正则表达式替换、切割字符串;获取当前时间
- python 获取当前时间
- Python 获取当前时间
- python获取当前时间
- Python 获取当前时间