I got the creation time of a file using this command:
ctime = Path("/home/user/mypic.jpg").stat().st_ctime
How do I convert this info to a datetime.datatime
object that is human-readable? I tried this answer but it failed:
from datetime import datetime
datetime.strptime(str(ctime), "%a %b %d %H:%M:%S %Y")