Date conversion strange behaviour
Rob Cozens
rcozens at pon.net
Sat Apr 15 11:42:25 EDT 2006
Bonjour Hervé,
> 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
>
On MacOS 9.0, RR v2.0r2, the result is:
1136106000,1144832400,8726400,101
On MacOSX 10.3.7, RR v2.1.2, the result is:
1136109600,114832400,8722800,100
On WinXP TPC Edition 2005, RR v2.6.1, the result is:
1136109600,1144832400,8722800,100
On WinXP TPC Edition 2005. RR v2.7, the result is:
1136109600,1144832400,8722800,100
The centuryCutoff is 35 on all platforms
Rob Cozens
CCW, Serendipity Software Company
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the use-livecode
mailing list