pyguymer3.getatime

pyguymer3.getatime(fname, /)[source]

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

This function aims to mimic os.path.getatime() 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