Discussion:
[9fans] tm2sec()
(too old to reply)
erik quanstrom
2013-08-10 20:09:11 UTC
Permalink
Tm2sec converts a broken-down time to seconds since the
start of the epoch. It ignores wday, and assumes the local
time zone if zone is not GMT.
as Tm.zone is not explicitely set to "GMT", i think
tm2sec() should specially handle the Tm.zone==""
shouldn't it assume GMT? epoch is in GMT, and file times
(as written to the disk) should be in GMT so that conversion
to any time zone for display will not be incorrect.

- erik
c***@gmx.de
2013-08-10 20:18:24 UTC
Permalink
dos, windows and dossrv store timestamps in local time on disk.
which is indeed crazy, but that seems to be the standard for fat.

--
cinap

Continue reading on narkive:
Loading...