A validator that succeeds only for values that are within (i.e. before or after) a duration of the specified
temporal (for example, "within a month of this person's birth date").
This is essentially equivalent to (value >= of - duration) && (value <= of + duration).
T
The specific temporal type this validator operates on.
Linear Supertypes
NullSafeValidator[T], BaseValidator[T], Validator[T], (T) ⇒ Result, AnyRef, Any
A textual representation of the specified duration (durations
are rendered to ISO-8601 representations by default, which is likely not the desirable
outcome).
A validator that succeeds only for values that are within (i.e. before or after) a duration of the specified temporal (for example, "within a month of this person's birth date").
This is essentially equivalent to
(value >= of - duration) && (value <= of + duration)
.The specific temporal type this validator operates on.