pyguymer3.getmtime

pyguymer3.getmtime(fname, /)[source]

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

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