Back to index

php5  5.3.10
DateTime_data-absolute.inc
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  * Note: test names match method names in a set of PHPUnit tests
00005  * in a userland package.  Please be so kind as to leave them.
00006  */
00007 
00008 date_default_timezone_set('America/New_York');
00009 
00010 
00011 /*
00012  * Absolute
00013  */
00014 echo "test_absolute_7: ";
00015 examine_diff('2009-01-14', '2009-01-07', 'P+0Y0M7DT0H0M0S', 7, true);
00016 
00017 echo "test_absolute_negative_7: ";
00018 examine_diff('2009-01-07', '2009-01-14', 'P+0Y0M7DT0H0M0S', 7, true);
00019 
00020 //14 - 7 = 7
00021 //7 + 7 = 14
00022 //
00023 //7 - 14 = -7
00024 //14 - 7 = 7