Working with seconds, what am I missing?

Robert Brenstein rjb at robelko.com
Sun Apr 22 17:23:19 EDT 2012


On 22.04.2012 at 21:55 Uhr +0100 Andrew Henshaw apparently wrote:
>
>Using the following simple code today (the 22nd April)..
>
>    put the date into tDate
>    convert tDate to seconds
>    put tDate
>
>Returns 1335049200
>
>Id expect to get a result of 22nd April,  but instead Ive fed that 
>in to a few online UNIX time converters and they all return Sat, 21 
>Apr 2012 23:00:00 GMT which is an hour into the previous day.

You do not specify the time when setting tDate initially. You might 
want to set the time like 4 am.

Robert




More information about the use-livecode mailing list