Several questions and sites such as here and here mention that Python's getmtime
returns UTC based on documentation (return os.path.getmtime(fileName)
). However, I cannot find in the documentation for the function why this must be so. Why must it be so? I am worried it is dependent on the OS and I must rely on it being the same for Windows, Linux, and MacOS.
I am working in Python 3.6 and 3.8.