import datetime import os.path def getModifyTime(filename): tt = datetime.datetime.fromtimestamp(os.path.getmtime(filename)) return tt.strftime("%Y/%m/%d %H:%M:%S")
import datetime import os.path def getModifyTime(filename): tt = datetime.datetime.fromtimestamp(os.path.getmtime(filename)) return tt.strftime("%Y/%m/%d %H:%M:%S")