pyguymer3.getctime

pyguymer3.getctime(fname, /)[source]

Get the creation time of a file as a timezone-aware datetime object.

This function aims to mimic os.path.getctime() but instead of returning a integer or float it returns a timezone-aware datetime object.

Parameters:

fname (str) – the file name

Returns:

ans – the timezone-aware datetime object

Return type:

datetime.datetime

Notes

Copyright 2017 Thomas Guymer [1]

References