Documentation

DateTimeImmutable extends DateTimeImmutable
in package
implements JsonSerializable

Overrides default json encoding of date time objects

Tags
author

Menno Holtkamp

author

Jordi Boggiano j.boggiano@seld.be

Interfaces, Classes and Traits

JsonSerializable

Table of Contents

$useMicroseconds  : bool
__construct()  : mixed
__toString()  : string
jsonSerialize()  : string

Properties

Methods

__construct()

public __construct(bool $useMicroseconds[, DateTimeZone|null $timezone = null ]) : mixed
Parameters
$useMicroseconds : bool
$timezone : DateTimeZone|null = null
Return values
mixed

Search results