Date implements JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
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
Constants
SERIALIZED_PATTERN
public
mixed
SERIALIZED_PATTERN
= '#(.+)\s\[([0-9\-]+)\]#i'
Methods
__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
getFormat()
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