xref: /PHP-8.0/ext/date/tests/date.phpt (revision f8d79582)
1--TEST--
2date() function
3--FILE--
4<?php
5$tmp = "cr";
6date_default_timezone_set('UTC');
7
8for($a = 0;$a < strlen($tmp); $a++){
9    echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n";
10}
11
12date_default_timezone_set("MET");
13
14for($a = 0;$a < strlen($tmp); $a++){
15    echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n";
16}
17?>
18--EXPECT--
19c: 2003-01-23T12:20:59+00:00
20r: Thu, 23 Jan 2003 12:20:59 +0000
21c: 2003-01-23T13:20:59+01:00
22r: Thu, 23 Jan 2003 13:20:59 +0100
23