Zend\Stdlib\DateTime::createFromISO8601
The DateTime::ISO8601 constant used by php's native DateTime object does not allow for fractions of a second. This function better handles ISO8601 formatted date strings.
Signature
public function createFromISO8601(string
$time,
[DateTimeZone
$timezone = null] )
Parameters
$time
— string$timezone
— DateTimeZone
Returns
- mixed