ZonedDateTime
Example
Section titled “Example”import * as p from '@vbudovski/paseri';
const schema = p.zonedDateTime();const data = Temporal.ZonedDateTime.from('2020-01-01T00:00:00Z[UTC]');
const result = schema.safeParse(data);if (result.ok) { // result.value typed as `Temporal.ZonedDateTime`.}Playground
Section titled “Playground”Validators
Section titled “Validators”Zoned date-time on or after value.
p.zonedDateTime().min(Temporal.ZonedDateTime.from('2020-01-01T00:00:00Z[UTC]'));Zoned date-time on or before value.
p.zonedDateTime().max(Temporal.ZonedDateTime.from('2020-01-01T00:00:00Z[UTC]'));