摘要: 1 def timeStampToDate(dateUnixString,format_string="%Y-%m-%d %H:%M:%S"): 2 ''' 3 时间戳转换时间字符串,时间戳可以是10位或者13位的 4 ''' 5 import time,datetime 6 length = le 阅读全文
posted @ 2019-07-17 23:13 也然君 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 1 def dateTotimeStamp(date,format_string="%Y-%m-%d %H:%M:%S",digits=10): 2 ''' 3 时间字符串转时间戳,默认10位,时间串默认格式为"%Y-%m-%d %H:%M:%S" 4 ''' 5 import time 6 try 阅读全文
posted @ 2019-07-17 23:02 也然君 阅读(1976) 评论(0) 推荐(0) 编辑