PHP userland backwards compatibility layer that emulates PHP 5.5+ core functions.

⌈⌋ ⎇ branch:  upgrade.php


Artifact [58476d1294]

Artifact 58476d1294383cc6d26f9ac406edfea1284f96f7:

  • File doc/tests1all/strftime.phpt — part of check-in [51e3884900] at 2010-06-22 17:03:27 on branch trunk — upgradephp-15 (user: mario size: 387)

--TEST--
strftime
--FILE--
<?php


$format = "time=%T date=%D";
$str = strftime($format, time());

$r = strptime($str, $format);

echo "$str\n";
print_r($r);


?>
--EXPECT--
time=06:38:38 date=07/30/07
Array
(
    [tm_sec] => 38
    [tm_min] => 38
    [tm_hour] => 6
    [tm_mday] => 30
    [tm_mon] => 6
    [tm_year] => 107
    [tm_wday] => 1
    [tm_yday] => 210
    [unparsed] => 
)