Builds a validator that succeeds if the provided value is within the specified tolerance of a particular instant.
Builds a validator that succeeds if the provided value is within the specified tolerance of a particular
instant. The duration is rendered as ISO-8601 by default, for example "PT168H"
:
tomorrow is within( Duration.standardDays( 7L ) ).of( now )
Builds a validator that succeeds if the provided value is within the specified tolerance of a particular instant.
Builds a validator that succeeds if the provided value is within the specified tolerance of a particular instant. For example:
tomorrow is within( Duration.standardDays( 7L ), "7 days" ).of( now )
Extends the Accord DSL with additional
within
operations over instants.