Skip to content

InstantDomain

class in io.proptastic

class InstantDomain

Moments, Instants: a date and a time in UTC, as dateTimes() draws them, in the same window, so a counterexample shrinks toward 2001-01-01T00:00:00Z, or the bound nearest it (decision 81).

Methods

atLeast

InstantDomain atLeast(Instant instant)

instant or later.

atMost

InstantDomain atMost(Instant instant)

instant or sooner.

greaterThan

InstantDomain greaterThan(Instant instant)

Later than instant.

lessThan

InstantDomain lessThan(Instant instant)

Sooner than instant.

every

InstantDomain every(Duration step)

Only instants a whole number of steps from midnight UTC; the step divides a day.

Privacy