I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / mktime_basic1.php
blob58fc9ab58abc895507ee3ec00cc4a48771c3b5bb
1 <?php
2 /* Prototype : int mktime ([ int $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n") [, int $day= date("j") [, int $year= date("Y") [, int $is_dst= -1 ]]]]]]] )
3 * Description: Get Unix timestamp for a date
4 * Source code: ext/date/php_date.c
5 * Alias to functions:
6 */
7 error_reporting(E_ALL | E_STRICT);
9 //Set the default time zone
10 date_default_timezone_set("Europe/London");
12 echo "*** Testing DateTime::modify() : basic functionality ***\n";
14 $hour = 10;
15 $minute = 30;
16 $sec = 45;
17 $month = 7;
18 $day = 2;
19 $year = 1963;
20 $is_dst = 0;
22 var_dump( mktime($hour) );
23 var_dump( mktime($hour, $minute) );
24 var_dump( mktime($hour, $minute, $sec) );
25 var_dump( mktime($hour, $minute, $sec, $month) );
26 var_dump( mktime($hour, $minute, $sec, $month, $day) );
27 var_dump( mktime($hour, $minute, $sec, $month, $day, $year) );
28 var_dump( mktime($hour, $minute, $sec, $month, $day, $year, $is_dst) );
31 ===DONE===