PlainTime
Example
Section titled “Example”import * as p from '@vbudovski/paseri';
const schema = p.plainTime();const data = Temporal.PlainTime.from('12:00:00');
const result = schema.safeParse(data);if (result.ok) { // result.value typed as `Temporal.PlainTime`.}Playground
Section titled “Playground”Validators
Section titled “Validators”Time on or after value.
p.plainTime().min(Temporal.PlainTime.from('09:00:00'));Time on or before value.
p.plainTime().max(Temporal.PlainTime.from('17:00:00'));