summaryrefslogtreecommitdiff
path: root/tests/exslt/date/sum.1.xml
blob: 1004a7ddbdefd2d392db445cfcb90ec2609e168e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<page>
  <!-- valid date/times -->
  <sum>
    <date dur='PT1M'/>
    <date dur='PT2M'/>
  </sum>

  <sum>
    <date dur='P1DT2H'/>
    <date dur='PT3M'/>
    <date dur='PT4S'/>
  </sum>

  <sum>
    <date dur='PT20M'/>
    <date dur='PT20M'/>
    <date dur='PT20M'/>
  </sum>

  <sum>
    <date dur='PT01S'/>
    <date dur='PT02S'/>
    <date dur='PT04S'/>
    <date dur='PT8S'/>
    <date dur='PT16S'/>
    <date dur='PT32S'/>
  </sum>

  <!-- Base case: sum of 1 node -->
  <sum>
    <date dur='P1M'/>
  </sum>

  <!-- Non-normalized input -->
  <sum>
    <date dur='PT70M'/>
  </sum>

  <sum>
    <date dur='PT70M'/>
    <date dur='P13M'/>
  </sum>

  <!-- Negative durations -->
  <sum>
    <date dur='PT70M'/>
    <date dur='-PT30M'/>
  </sum>

  <sum>
    <date dur='PT1H10M'/>
    <date dur='-PT30M'/>
    <date dur='-PT30S'/>
  </sum>

  <!-- Zero sum -->
  <sum>
    <date dur='PT1M'/>
    <date dur='-PT1M'/>
  </sum>

</page>