I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / strftime_variation9.php
blob1692048593ada569f65f9af16061a4d2ee1f691f
1 <?php
2 /* Prototype : string strftime(string format [, int timestamp])
3 * Description: Format a local time/date according to locale settings
4 * Source code: ext/date/php_date.c
5 * Alias to functions:
6 */
8 echo "*** Testing strftime() : usage variation ***\n";
10 // Initialise function arguments not being substituted (if any)
11 setlocale(LC_ALL, "en_US");
12 date_default_timezone_set("Asia/Calcutta");
13 $timestamp = mktime(8, 8, 8, 8, 8, 2008);
15 //array of values to iterate over
16 $inputs = array(
17 'The ISO 8601:1988 week number' => "%V",
18 'Weekday as decimal' => "%u",
21 // loop through each element of the array for timestamp
23 foreach($inputs as $key =>$value) {
24 echo "\n--$key--\n";
25 var_dump( strftime($value) );
26 var_dump( strftime($value, $timestamp) );
30 ===DONE===