1.2.1496. ext/date¶
Extension ext/date.
These functions allows the manipulation of date and time from the server where the PHP scripts are running.
<?php
$dt = new DateTime('2015-11-01 00:00:00', new DateTimeZone('America/New_York'));
echo 'Start: ', $dt->format('Y-m-d H:i:s P'), PHP_EOL;
$dt->add(new DateInterval('PT3H'));
echo 'End: ', $dt->format('Y-m-d H:i:s P'), PHP_EOL;
?>
See also Date and Time.
1.2.1496.1. Specs¶
Short name |
Extensions/Extdate |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |