Info
Content

Get creation date of a file

Uses os and datetime.

import os
from datetime import datetime

def getCreateDate(filepath):
  return datetime.utcfromtimestamp(os.path.getctime(filepath))
No Comments
Back to top