1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/standard/tests/time/idate_iso.phpt
T
2022-05-13 09:36:43 +01:00

24 lines
415 B
PHP

--TEST--
idate() function: ISO Day-of-Week and ISO Year
--FILE--
<?php
date_default_timezone_set('UTC');
$tmp = "UwNW";
for ($a = 0; $a < strlen($tmp); $a++){
echo $tmp[$a], ': ', idate($tmp[$a], 1041808859), "\n";
}
$tmp = "UYoW";
for ($a = 0; $a < strlen($tmp); $a++){
echo $tmp[$a], ': ', idate($tmp[$a], 1072912859), "\n";
}
?>
--EXPECT--
U: 1041808859
w: 0
N: 7
W: 1
U: 1072912859
Y: 2003
o: 2004
W: 1