Date conversion strange behaviour
Thomas McGrath III
3mcgrath at adelphia.net
Tue Apr 25 11:56:52 EDT 2006
On my Mac OSX 10.4.6 using REV 2.6.1
1136095200,1144821600,8726400,101
On my Win XP using REV 2.6.1
1136098800,1144821600,8722800,100
HTH
Tom
On Apr 15, 2006, at 4:02 AM, Hervé Chaudet wrote:
> Hi,
>
> Can someone verify the result of this little script on both
> platform Win and MacOS :
>
> on mouseUp
> put "01/01/06" into d0
> put "04/12/06" into d1
> convert d0 to seconds
> convert d1 to seconds
> answer d0,d1,d1-d0,(d1-d0) div 86400
> end mouseUp
>
> On MacOS the result is: 1136073600,1144800000,8726400,101
> On Win: 1136077200,1144800000,8722800,100
>
> The difference between the two platform is 1 hour for d0 only, and
> the resulting difference between d0 and d1 is 101 days on MacOSX
> and 100 days on Win !
>
> Any idea ?
>
>
> Herve Chaudet
Thomas J McGrath III
3mcgrath at adelphia.net
Lazy River Software™ - http://www.lazyriversoftware.com
Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html
Meeting Wear™ - http://www.cafepress.com/meetingwear
Semantic Compaction Systems - http://www.minspeak.com
SCIconics, LLC - http://www.sciconics.com/sciindex.html
More information about the use-livecode
mailing list