DateTime
DateTimeInterface
, Stringable
An ION Timestamp.
See also the ION spec's timestamp definition, and PHP's date documentation.
None.
int
$precision#string
$format# = NULL
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
|string
|null
$timezone = NULL
]]])
Timestamp format.
enum
ion\Timestamp\Format implements BackedEnum
Timestamp precision.
enum
ion\Timestamp\Precision implements BackedEnum