1<?php
2
3/*
4 * Note: test names match method names in a set of PHPUnit tests
5 * in a userland package.  Please be so kind as to leave them.
6 */
7
8date_default_timezone_set('America/New_York');
9
10
11/*
12 * Absolute
13 */
14echo "test_absolute_7: ";
15examine_diff('2009-01-14', '2009-01-07', 'P+0Y0M7DT0H0M0S', 7, true);
16
17echo "test_absolute_negative_7: ";
18examine_diff('2009-01-07', '2009-01-14', 'P+0Y0M7DT0H0M0S', 7, true);
19
20//14 - 7 = 7
21//7 + 7 = 14
22//
23//7 - 14 = -7
24//14 - 7 = 7
25