2014年1月13日

摘要: 1 import time 2 import datetime 3 4 class TimeX: 5 '''时间工具,目前用于格式化时间''' 6 7 @staticmethod 8 def GetLocalTimeString_Time(arg_time=time.time()): 9 '''返回【年-月-日 时:分:秒】格式。如果没有参数,则默认为当前时间'''10 return time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(a 阅读全文
posted @ 2014-01-13 16:45 xxxteam 阅读(526) 评论(0) 推荐(0) 编辑

导航