The seconds and time zones

Jim Ault jimaultwins at yahoo.com
Tue Jan 26 00:48:55 EST 2010


Do a quick test

put the seconds -- make a note of the value

set your computer clock to yesterday
put the seconds

set your computer clock to 1971
put the seconds

set your computer clock to 1969
put the seconds

GMT may be part of your answer.

Sarah has a very definitive stack that goes into to detail and examples

    DateTime.rev
http://www.troz.net/rev/index.irev?category=Library#stacks

Jim Ault
Las Vegas


On Jan 25, 2010, at 8:53 PM, Bill Vlahos wrote:

> I want to represent time snapshot independently of format and time  
> zone so that I can compare the modification times of two items. The  
> "seconds" looks like the way to go but I thought that it would get  
> thrown off depending upon which time zone the computer was in.
>
> I just saw this in the Rev dictionary:
> Note: The convert command assumes all dates / times are in local  
> time except for 'the seconds', which is taken to be universal time.
>
> Does this mean that if I "get the seconds" simultaneously anywhere  
> in the world it will result in the same number or would I have to  
> account for the time zone offset. This definition makes it sound  
> like it already takes into account the time zone offset.
>
> Bill Vlahos








More information about the use-livecode mailing list