Epoch time in unix is the number of seconds since the beginning of Jan 1st, 1970 GMT (or UTC? It's basically the same thing as far as most people are concerned).
Still, are you sure this is consistent across *nix and Windows.
Yes, stat returns unix epoch times on Windows. But read on.
When I looked at the cloned file's metadata via Windows's file properties it showed a 1 hour time offset.
Explorer shows the timestamp using the current local time zone. Sounds normal, but there's a catch. It views timezones as offsets from GMT, not slices of geograghy, so EST and EDT are two different time zones to it.
If I created a file at
2010-01-01 18:00:00 (local time)
and if checked the creation date today, Explorer would show it as being created at
rather than2010-01-01 17:00:00 (EDT)
2010-01-01 18:00:00 (America/New_York)
I don't know if that's a problem in Explorer, or a problem with the OS itself. It could even be specific to the file system. This could have an effect on stat.
In reply to Re^2: stat() and time-zone-offsets?
by ikegami
in thread stat() and time-zone-offsets?
by isync
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |