Annotation of embedaddon/php/ext/date/tests/DateTime_data-absolute.inc, revision 1.1
1.1 ! misho 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:
! 8: date_default_timezone_set('America/New_York');
! 9:
! 10:
! 11: /*
! 12: * Absolute
! 13: */
! 14: echo "test_absolute_7: ";
! 15: examine_diff('2009-01-14', '2009-01-07', 'P+0Y0M7DT0H0M0S', 7, true);
! 16:
! 17: echo "test_absolute_negative_7: ";
! 18: examine_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
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>