Guest User

Untitled

a guest
Apr 19th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import os
  2. from datetime import datetime
  3.  
  4. path = ''
  5. unix_timestamp = os.path.getmtime(path)
  6. modified_datetime = datetime.fromtimestamp(unix_timestamp).strftime('%Y-%m-%d %H:%M:%S')
  7. print(modified_datetime)
Add Comment
Please, Sign In to add comment