天下

记录修行的印记

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

<2021年8月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
2930311234

导航

统计

常用链接

留言簿(4)

随笔分类(378)

随笔档案(329)

链接

最新随笔

搜索

最新评论