# RE: F&O Problems with dayTimeDuration example results

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Wed, 18 Sep 2002 09:20:39 -0400 (EDT)
Message-ID: <E5B814702B65CB4DA51644580E4853FB03DA7339@red-msg-12.redmond.corp.microsoft.com>
```

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
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:10 UTC