1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/date/tests/gmdate_variation5.phpt
2020-06-24 13:13:44 +02:00

22 lines
585 B
PHP

--TEST--
Test gmdate() function : usage variation - Passing Week representation to format.
--FILE--
<?php
echo "*** Testing gmdate() : usage variation ***\n";
// Initialise all required variables
date_default_timezone_set('UTC');
$timestamp = mktime(8, 8, 8, 8, 8, 2008);
echo "\n-- Testing gmdate() function with ISO-8601 week number of year format --\n";
var_dump( gmdate('W') );
var_dump( gmdate('W', $timestamp) );
?>
--EXPECTF--
*** Testing gmdate() : usage variation ***
-- Testing gmdate() function with ISO-8601 week number of year format --
string(%d) "%d"
string(2) "32"