File time off by an hour...

Bernard Devlin bdrunrev at gmail.com
Thu Dec 22 03:12:50 CST 2011


Keith,

It seems this issue has come up with Windows and other programming
languages (included those supplied by Microsoft!)

http://stackoverflow.com/questions/4605983/io-file-getlastaccesstime-is-off-by-one-hour

http://stackoverflow.com/questions/6009902/different-timestamps-under-winxp-win7-and-vb-net

In one of the above examples, the user is on CST (maybe that is a factor).

There have been discussions on the list before about converting
date-times between seconds and e.g. internet time.  Instead of using
the short date & time, why don't you run through your file list, and
convert the file time into a list of values, e.g. short date and time,
internet date, etc.  You may find with one of them the difference
disappears.

Also, you could try setting the useSystemDate to true v. false, and
see what you get.

This is a tricky area (really we should all just be on GMT!), as
evinced by the two discussions above from Stack Overflow.

Bernard

On Thu, Dec 22, 2011 at 12:08 AM, Keith (Gulf Breeze Ortho Lab)
<keith at gulfbreezeortholab.com> wrote:
> Hmmmm. No responses to this.



More information about the use-livecode mailing list