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