I Am Lazy: Python, to convert a file’s age in seconds since epoch to a readable format

For my own lazyness, so I don’t need to hunt for this damn chain of syntax.

>>> time.strftime("%Y%m%d-%H%M.%S", time.gmtime(os.path.getctime("$path_to_file"))) '20101213-1948.58' >>>> time.strftime("%Y%m%d-%H%M.%S", time.gmtime(os.path.getctime("$path_to_file"))) '20101213-1948.58'