__construct()
__construct( $time = null, $tz = null)
Parameters
$time | ||
$tz |
A wrapper around PHP's native DateTime class that handles improperly formatted dates and adds a few features missing from the base object (string representation; doesn't fail on bad date input).