import time
import datetime

import os


def TimeStampToTime(timestamp):
    timeStruct = time.localtime(timestamp)
    return time.strftime('%Y-%m-%d %H:%M:%S', timeStruct)


def get_FileAccessTime(filePath):
    t = os.path.getatime(filePath)
    return t


def get_FileCreateTime(filePath):
    t = os.path.getctime(filePath)
    return t


def get_FileModifyTime(filePath):
    t = os.path.getmtime(filePath)
    return t


print(os.getcwd())
now = os.getcwd()
dirs = os.listdir(now)
for file in dirs:
    print(file)
    print(time.time())
    print(time.time() - get_FileModifyTime(file))
    print(time.time() - get_FileCreateTime(file))
    print(time.time() - get_FileModifyTime(file))
