/ Published in: Python

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# recupete le mtime d'un fichier import os file="c:\gce.png" mtime = os.stat(file).st_mtime # le transforme en time import time print time.localtime(mtime) # le transforme en datetime import datetime print datetime.datetime.fromtimestamp(mtime)
Comments
