On a Mac I did a little script:
Code: Select all
on mouseUp
put 86400 into theHour
convert thehour to dateitems
put thehour into hour2
convert hour2 to seconds
put last word of the internet date into timez
put "time zone: " & timez & return & "the seconds: " & hour2 & return & "converted to dateitems: " & thehour & return & return after fld "fld3"
end mouseUp
time zone: +0600
the seconds: 86400
converted to dateitems: 1970,1,2,5,0,0,6
time zone: +0500
the seconds: 86400
converted to dateitems: 1970,1,2,5,0,0,6
time zone: +0400
the seconds: 86400
converted to dateitems: 1970,1,2,3,0,0,6
time zone: +0300
the seconds: 86400
converted to dateitems: 1970,1,2,2,0,0,6
time zone: +0200
the seconds: 86400
converted to dateitems: 1970,1,2,1,0,0,6
time zone: +0100
the seconds: 86400
converted to dateitems: 1970,1,2,1,0,0,6
time zone: +0000
the seconds: 86400
converted to dateitems: 1970,1,2,0,0,0,6
time zone: -0200
the seconds: 86400
converted to dateitems: 1970,1,1,21,0,0,5
time zone: -0300
the seconds: 86400
converted to dateitems: 1970,1,1,21,0,0,5
time zone: -0400
the seconds: 86400
converted to dateitems: 1970,1,1,20,0,0,5
time zone: -0500
the seconds: 86400
converted to dateitems: 1970,1,1,19,0,0,5
time zone: -0600
the seconds: 86400
converted to dateitems: 1970,1,1,17,0,0,5
time zone: -0700
the seconds: 86400
converted to dateitems: 1970,1,1,16,0,0,5
time zone: -0800
the seconds: 86400
converted to dateitems: 1970,1,1,14,0,0,5
As you can see, the thing is not linear. Can some one tell me why ?
Further:
With the clock showing the same time, but changing time zone, I've got this
CEST time zone: +0200
the seconds: 86400
converted to dateitems: 1970,1,2,1,0,0,6
EET time zone: +0200
the seconds: 86400
converted to dateitems: 1970,1,2,2,0,0,6
May be I did not understand the time zone business...[/i]