xref: /PHP-8.4/ext/standard/tests/time/idate_iso.phpt (revision 12702a20)
1--TEST--
2idate() function: ISO Day-of-Week and ISO Year
3--FILE--
4<?php
5date_default_timezone_set('UTC');
6$tmp = "UwNW";
7for ($a = 0; $a < strlen($tmp); $a++){
8    echo $tmp[$a], ': ', idate($tmp[$a], 1041808859), "\n";
9}
10$tmp = "UYoW";
11for ($a = 0; $a < strlen($tmp); $a++){
12    echo $tmp[$a], ': ', idate($tmp[$a], 1072912859), "\n";
13}
14?>
15--EXPECT--
16U: 1041808859
17w: 0
18N: 7
19W: 1
20U: 1072912859
21Y: 2003
22o: 2004
23W: 1
24