in reply to Getting the timestamp of a file

Usually there are no issues, because the return values are timestamps, which means they are numbers of seconds since start of the "epoch".

The number of seconds since a particular time obviously is not dependent on daylight saving time. It should also not depend on your time zone, but since the system is responsible for keeping to track of the time, you have to trust it at some level.