DateTime
extends Date
Table of Contents
Constants
-
SERIALIZED_PATTERN
= '#(.+)\s\[([0-9\-]+)\]#i'
Methods
-
__construct()
: mixed
-
__toString()
: mixed
-
fromSystemObject()
: mixed
-
getFormat()
: mixed
-
getOffset()
: mixed
-
getTimestamp()
: mixed
-
isSerialized()
: mixed
-
jsonSerialize()
: mixed
-
serialize()
: mixed
-
toSystemObject()
: mixed
SERIALIZED_PATTERN
public
mixed
SERIALIZED_PATTERN
= '#(.+)\s\[([0-9\-]+)\]#i'
__construct()
public
__construct([mixed $dateFormatted = null ][, mixed $offset = 0 ]) : mixed
Parameters
-
$dateFormatted
: mixed
= null
-
-
$offset
: mixed
= 0
-
__toString()
public
__toString() : mixed
fromSystemObject()
public
static fromSystemObject(Date $date) : mixed
Parameters
-
$date
: Date
-
public
getFormat() : mixed
getOffset()
public
getOffset() : mixed
getTimestamp()
public
getTimestamp() : mixed
isSerialized()
public
static isSerialized(mixed $dateString) : mixed
Parameters
-
$dateString
: mixed
-
jsonSerialize()
public
jsonSerialize() : mixed
serialize()
public
serialize() : mixed
toSystemObject()
public
toSystemObject() : mixed