MongoDB\BSON\UTCDateTimeInterface::toDateTimeImmutable

(mongodb >=2.0.0)

MongoDB\BSON\UTCDateTimeInterface::toDateTimeImmutableReturns the DateTimeImmutable representation of this UTCDateTimeInterface

Description

abstract public MongoDB\BSON\UTCDateTimeInterface::toDateTimeImmutable(): DateTimeImmutable

Parameters

This function has no parameters.

Return Values

Returns the DateTimeImmutable representation of this UTCDateTimeInterface. The returned DateTimeImmutable will use the UTC time zone.

See Also

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top