天下

记录修行的印记

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 天下 阅读(304) 评论(0)  编辑 收藏 引用 所属分类: PythonMySQL

<2011年10月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

导航

统计

常用链接

留言簿(4)

随笔分类(378)

随笔档案(329)

链接

最新随笔

搜索

最新评论