Converting times

JonathanC at ag.nsw.gov.au JonathanC at ag.nsw.gov.au
Wed Nov 5 21:38:47 CST 2003


Thanks Sarah, Jacque and Monte for your investigations. So, it looks like 
Daylight saving is the culprit! 
I'm still puzzled as to why I get the 2-hour discrepancy with dateItems:

ask "Enter a time:" with "8:17 am"
convert it to dateItems
convert it to short time
put it

=> 10:17 am

Also, since "8:17 am" Aust. Eastern Summer Time" = 7:17 am Aust Eastern 
Standard Time, I can't understand why the time went FORWARD on 
reconversion,not back.

FWIW, here's a few other experiments I did after receiving the last few 
replies:

[They all begin with...
  get "8:17 am"
and end with
  answer it]

convert it to internet date
=> Thu, 6 Nov 2003 09:17:00 +1000

set the useSystemDate to true
convert it to internet date
=> Sun, 11 Jan 1970 08:17:00 +1000

convert it to system time
=> 9:17 AM

set the useSystemDate to true
convert it to system time
=> 8:17 AM

I'm not familiar enough with Revolution yet but, those of you who are, 
does this behaviour make sense to you?

Jonathan Cooper
Manager of Information / Website
Art Gallery of New South Wales
Sydney, Australia
http://www.artgallery.nsw.gov.au

This e-mail message is intended only for the addressee(s) and contains 
information which may be confidential.  If you are not the intended 
recipient please advise the sender by return email, do not use or disclose 
the contents, and delete the message and any attachments from your system. 
 Unless specifically indicated, this email does not constitute formal 
advice or commitment by the sender or the Art Gallery of NSW  (ABN 24 934 
492 575) or its related entities.


More information about the use-livecode mailing list