我怎样才能转换os.path.getctime()
到正确的时间?
我的源代码是:
import os
print("My Path: "+os.getcwd())
print(os.listdir("."))
print("Root/: ",os.listdir("/"))
for items in os.listdir("."):
if os.path.isdir(items):
print(items+" "+"Is a Directory")
print("---Information:")
print(" *Full Name: ",os.path.dirname(items))
print(" *Created Time: ",os.path.getctime(items))
print(" *Modified Time: ",os.path.getmtime(items))
print(" *Size: ",os.path.getsize(items))
else:
print(items+" Is a File")
输出:
---Information:
*Full Name:
*Created Time: 1382189138.4196026
*Modified Time: 1382378167.9465308
*Size: 4096