class DateTimeImmutable extends DateTimeImmutable implements JsonSerializable

DateTimeImmutable class.

This class is used for easier conversion to a timestamp that works with Contentful.

Methods

formatForJson()

Formats the string for an easier interoperability with Contentful.

__toString()

Returns a string representation of the current object.

jsonSerialize()

Returns a JSON representation of the current object.

Details

at line 24
formatForJson()

Formats the string for an easier interoperability with Contentful.

at line 40
__toString()

Returns a string representation of the current object.

at line 48
jsonSerialize()

Returns a JSON representation of the current object.