DateTimeImmutable
extends DateTimeImmutable
in package
implements
JsonSerializable
Overrides default json encoding of date time objects
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $useMicroseconds : bool
Methods
- __construct() : mixed
- __toString() : string
- jsonSerialize() : string
Properties
$useMicroseconds
private
bool
$useMicroseconds
Methods
__construct()
public
__construct(bool $useMicroseconds[, DateTimeZone|null $timezone = null ]) : mixed
Parameters
- $useMicroseconds : bool
- $timezone : DateTimeZone|null = null
__toString()
public
__toString() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : string