摘要:
1 def timeStampToDate(dateUnixString,format_string="%Y-%m-%d %H:%M:%S"): 2 ''' 3 时间戳转换时间字符串,时间戳可以是10位或者13位的 4 ''' 5 import time,datetime 6 length = le 阅读全文
摘要:
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 阅读全文