summaryrefslogtreecommitdiff
path: root/tests/exslt/date/difference.1.xml
blob: ca897c0976a0b4ca771c610b1594a657e2136a11 (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
<?xml version="1.0"?>
<page>
  <!-- valid date/times -->
  <date date1='2000' date2='1999'/>
  <date date1='2000-01' date2='1999-12'/>
  <date date1='1999-12' date2='2000-01'/>
  <date date1='1999-12-31' date2='2000-01-01'/>
  <date date1='1999' date2='2000-01'/>
  <date date1='0002-01-05' date2='0001-01-04'/>
  <date date1='0002-05-05' date2='0001-01'/>
  <date date1='-0002-01-05' date2='0001-01-04'/>
  <date date1='1970-01-01T05:04:03' date2='1970-01-01T04:03:02'/>
  <date date1='2000-01-01T05:00:03' date2='2000-01-01T04:03:02'/>
  <date date1='2000-01-01T05:00:03' date2='1980-01-01T04:03:02'/>
  <!-- from bug #93444 -->
  <date date2='1970-01-01T05:04:03' date1='1970-01-01T04:03:02'/>
  <date date2='2000-01-01T05:00:03' date1='2000-01-01T04:03:02'/>
  <date date2='2000-01-01T05:00:03' date1='1980-01-01T04:03:02'/>
  <!-- from bug #92818 -->
  <date date1='2002-05-02T23:59:59' date2='2002-05-03T00:00:01'/>
  <date date2='2002-05-02T23:59:59' date1='2002-05-03T00:00:01'/>
  <!-- result should be negative -->
  <date date1='2000-01-02T05:00:03' date2='2000-01-01T04:03:02'/>
  <!-- with timezone -->
  <date date1='2016-04-28T17:59:30+02:00' date2='2016-04-28T17:59:30+04:00'/>
</page>