\JsonSchemaRfc3339

Summary

Methods
Properties
Constants
createFromString()
No public properties found
REGEX
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

REGEX

REGEX = '/^(\d{4}-\d{2}-\d{2}[T ]{1}\d{2}:\d{2}:\d{2})(\.\d+)?(Z|([+-]\d{2}):?(\d{2}))$/'

Methods

createFromString()

createFromString(string  $string) : \DateTime|null

Try creating a DateTime instance

Parameters

string $string

Returns

\DateTime|null