Python 日期格式化 及 schwartzian排序
摘要:
__author__ = 'root'import datetimeimport timeimport copy# 12/Dec/2012:23:59:50# 12/Sep/2012:23:58:50# 11/Sep/2012:23:59:50# 19/Sep/2012:23:58:50def getTime(dtstr): print dtstr time = datetime.datetime.strptime(dtstr, '%d/%b/%Y:%H:%M:%S') return time.strftime('%Y%m%d%H%M%S')li 阅读全文
posted @ 2014-02-28 11:31 雨渐渐 阅读(1654) 评论(0) 推荐(0)
浙公网安备 33010602011771号