Convert to seconds bug on OSX?

Tariel Gogoberidze tariel at mac.com
Thu Apr 3 03:45:01 EST 2003


It all began when I tried to get difference in seconds between

"10/9/2002 12:26:52"  and  "12/6/2002 14:07:04"

on mouseUp
  put "10/9/2002 12:26:52" into tStartTime
  Convert tStartTime to seconds
  put "12/6/2002 14:07:04" into tEndTime
  Convert tEndTime to seconds
  put tEndTime-tStartTime
end mouseup


On OS 9.x MC was correctly returning 5017212 sec

On OS 10.2.4 the same script suddenly returned  5020812 sec (extra 3600 sec)


Turns out that....

 OS 9.x, MC 2.4.2 <-> MC 2.5B6

Convert "12/6/2002" to seconds = 1039158000 -- correct
Convert "10/9/2002" to seconds = 1034146800 -- correct

OS 10.2.4, MC 2.4.3 <-> MC 2.5G1

Convert "12/6/2002" to seconds = 1039158000 -- correct
Convert "10/9/2002" to seconds = 1034143200 -- Wrong (3600 seconds less)


How I'm supposed to deal with that?
Is this OS X bug, MC bug or am I missing something?

Thanks in advance
Tariel Gogoberidze




More information about the metacard mailing list