class ion\Timestamp extends DateTime implements DateTimeInterface, Stringable
An ION Timestamp.
See also the ION sepc's timestamp definintion, and PHP's date documentation.
Constants:#
None.
Properties:#
- public int $precision
The timestamp's precision. See ion\Timestamp\Precision.
- public string $format = NULL
The timestamp's format. See ion\Timestamp\Format.
Functions:
-
Create a new ION timestamp.
void ion\Timestamp::__construct(ion\Timestamp\Precision|int $precision, [ion\Timestamp\Format|string|null $format = NULL, [?string $datetime = NULL, [?DateTimeZone $timezone = NULL]]])
Namespaces, Interfaces and Classes:
-
Timestamp format.
enum ion\Timestamp\Format implements BackedEnum, UnitEnum
-
Timestamp precision.
enum ion\Timestamp\Precision implements BackedEnum, UnitEnum