File time off by an hour...

Keith (Gulf Breeze Ortho Lab) keith at gulfbreezeortholab.com
Thu Dec 22 15:31:19 EST 2011


Thanks Bernard. I put together some code that will work for practical 
purposes (i.e., utilizing internet time and time zone), but it's still not a 
perfect solution. For now, I will just list the file dates without times...

Cheers from Florida,

- Boo

-----Original Message----- 
From: Bernard Devlin
Sent: Thursday, December 22, 2011 3:12 AM
To: How to use LiveCode
Subject: Re: File time off by an hour...

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.

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode 





More information about the use-livecode mailing list