I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / gmdate_variation14.php
blob8fd7abdb00d247086a3af37491df9ce6a0d2bf20
1 <?php
2 /* Prototype : string gmdate(string format [, long timestamp])
3 * Description: Format a GMT date/time
4 * Source code: ext/date/php_date.c
5 */
7 echo "*** Testing gmdate() : usage variation ***\n";
9 // Initialise all required variables
10 date_default_timezone_set('UTC');
11 $format = DATE_ISO8601;
13 echo "\n-- Testing gmdate() function with float 12.3456789000e10 to timestamp --\n";
14 $timestamp = 12.3456789000e10;
15 var_dump( gmdate($format, $timestamp) );
17 echo "\n-- Testing gmdate() function with float -12.3456789000e10 to timestamp --\n";
18 $timestamp = -12.3456789000e10;
19 var_dump( gmdate($format, $timestamp) );
22 ===DONE===