UTCDateTime
final class UTCDateTime implements Type, UTCDateTimeInterface, Serializable, JsonSerializable (View source)
Represents a BSON date.
Methods
Construct a new UTCDateTime
No description
Returns the DateTime representation of this UTCDateTime
Returns the DateTimeImmutable representation of this UTCDateTime
Returns the string representation of this UTCDateTime
Serialize a UTCDateTime
Unserialize a UTCDateTime
Returns a representation that can be converted to JSON
Details
final
__construct(Int64|null $milliseconds = null)
Construct a new UTCDateTime
static
__set_state(array $properties)
No description
final DateTime
toDateTime()
Returns the DateTime representation of this UTCDateTime
final DateTimeImmutable
toDateTimeImmutable()
Returns the DateTimeImmutable representation of this UTCDateTime
final string
__toString()
Returns the string representation of this UTCDateTime
final string|null
serialize()
Serialize a UTCDateTime
final void
unserialize(string $data)
Unserialize a UTCDateTime
final mixed
jsonSerialize()
Returns a representation that can be converted to JSON