天下

记录修行的印记

Python和MySQL时间处理

#Python
import time
time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(1450842012))


#MySQL
SELECT UNIX_TIMESTAMP(NOW()) as `timestamp`,NOW() as `now`;

posted on 2015-12-23 11:51 天下 阅读(301) 评论(0)  编辑 收藏 引用 所属分类: PythonMySQL

<2012年3月>
26272829123
45678910
11121314151617
18192021222324
25262728293031
1234567

导航

统计

常用链接

留言簿(4)

随笔分类(378)

随笔档案(329)

链接

最新随笔

搜索

最新评论