Herve,
I'm sorry I've taken so long to reply. I saw your post yesterday morning but have been very busy. Anyway, I'm sure everyone will get the same results you did with the date conversion. The problem is in OS X, not Revolution. In OS X days that go onto daylight savings time (summer time, war time, etc.) have 23 hours; those that come off dst have 25. The seconds calculations work fine - unless they cross a 23 or 25 hour day. We had a long discussion on this subject about a year ago here on the list and in a special group of especially interested users. We recommended a way for Rev. to handle this but, so as I know, nothing has been done about it.
Paul Looney

-----Original Message-----
From: Hervé Chaudet <[EMAIL PROTECTED]>
To: [email protected]
Sent: Sat, 15 Apr 2006 10:02:57 +0200
Subject: Date conversion strange behaviour

  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 
 
Laboratoire d'Informatique Fondamentale - UMR CNRS 6166 
  Faculte de Medecine - 27, Bd Jean Moulin - 13385 Marseille cedex 5 - France 
  Tel 33-(0)-491-79-19-10 ; Fax 33-(0)-491-79-40-13 
 
Courriel : [EMAIL PROTECTED]
-------------------------------------------------------------------------
---- 
 
_______________________________________________ 
use-revolution mailing list 
[EMAIL PROTECTED]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 
http://lists.runrev.com/mailman/listinfo/use-revolution 

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to