MongoDB\BSON\UTCDateTime::serialize
(mongodb >=1.2.0)
MongoDB\BSON\UTCDateTime::serialize — Serialize a UTCDateTime
Description
Parameters
This function has no parameters.
Return Values
Returns the serialized representation of the MongoDB\BSON\UTCDateTime.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
See Also
- MongoDB\BSON\UTCDateTime::unserialize() - Unserialize a UTCDateTime
- serialize() - Generates a storable representation of a value
- Serializing Objects