RE: F&O Problems with dayTimeDuration example results

Many thanks!  Your numbers seem to be correct but I will double-check.

All the best, Ashok 


-----Original Message-----
From: Natalie Gordon [mailto:nfg@decisionsoft.com] 
Sent: Wednesday, September 18, 2002 2:24 AM
To: public-qt-comments@w3.org
Subject: F&O Problems with dayTimeDuration example results





I've found the following dayTimeDuration examples had incorrect 
results:

8.7.8.1 subtract-dayTimeDuration-from-dateTime
dateTime('2000-10-30-T11:12:00) - dayTimeDuration(P3DT1H15M) = 
'2000-10-27T09:57:00' (not '2000-10-28T09:57:00')

8.5.7.1 multiply-dayTimeDuration
Here are my calculations:
2H10M = 7800S
7800S * 2.1 = 16380S
16380S = 4H 33M (not 4H 23M)

8.5.8.1 divide-dayTimeDuration
Here are my calculations:
1D2H30M10.5S = 95410.5S
95410.5/1.5 = 63607S
63607S = 17H 40M 7S (not 17H 40M 2S)

8.7.14 subtract-dayTimeDuration-from-time
time(11:12:00) - dayTimeDuration(P3DT1H15M) = 09:57:00 (not 10:57:00)

If I'm incorrect with any of my calculations please let me know.

Natalie Gordon

Received on Wednesday, 18 September 2002 09:50:29 UTC