DateTime

An extension of the \DateTime object.

deprecated
package Default

 Methods

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.

createFromISO8601(string $time, \DateTimeZone $timezone = null) : mixed
Static

Parameters

$time

string

$timezone

\DateTimeZone

Returns

mixed