2018年6月15日

python时间戳转时间

摘要: import time timestamp = 1462451334 #转换成localtime time_local = time.localtime(timestamp) #转换成新的时间格式(2016-05-05 20:28:54) dt = time.strftime("%Y-%m-%d %H:%M:%S",time_local) print(dt) 阅读全文

posted @ 2018-06-15 16:14 林肯公园 阅读(198) 评论(0) 推荐(0)

python 日期格式转换

摘要: 通过datetime.datetime.strptime(date_string, format)将原字符串进行时间格式匹配,并赋值给time_format,然后time_format调用strftime(format)函数,输出自己想要的格式 python中时间日期格式化符号: %y 两位数的年份 阅读全文

posted @ 2018-06-15 16:13 林肯公园 阅读(590) 评论(0) 推荐(0)

Linux基础入门之vsFTP+MySQL/MariaDB认证实现虚拟用户配置详解

摘要: https://www.dwhd.org/20150603_144841.html VSFTP可以使用系统账户或者匿名账户登录,但是出于安全的考虑,通常建议使用vsftp虚拟账户来登录ftp服务器,虚拟用户是指使用独立的文件保存vsftp用户帐号,虚拟账户只能登录ftp服务器。 一、配置基于MySQ 阅读全文

posted @ 2018-06-15 00:36 林肯公园 阅读(306) 评论(0) 推荐(0)

导航