Temporal
Returns a function that takes an optional arg and uses it as the
operand or injects a argument from some other source (e.g., HTML element, query
string).
When called, the returned function returns the operand if it matches the
type, otherwise returns an Error.
- IsCalendar
= operand => (arg => Either<Error, Calendar) - IsDuration
= operand => (arg => Either<Error, Duration) - IsInstant
= operand => (arg => Either<Error, Instant) - IsPlainDate
= operand => (arg => Either<Error, PlainDate) - IsPlainDateTime
= operand => (arg => Either<Error, PlainDateTime) - IsPlainMonthDay
= operand => (arg => Either<Error, PlainMonthDay) - IsPlainTime
= operand => (arg => Either<Error, PlainTime) - IsPlainYearMonth
= operand => (arg => Either<Error, PlainYearMonth) - IsTimeZone
= operand => (arg => Either<Error, TimeZone) - IsYearWeek
= operand => (arg => Either<Error, YearWeek) - IsZonedDateTime
= operand => (arg => Either<Error, ZonedDateTime)