DateTimeDomain
class in io.proptastic
class DateTimeDomainDates with times of day and no zone, LocalDateTimes: a date as dates() draws it,
with its calendar edges, then a time on that date, so a counterexample shrinks toward
2001-01-01T00:00, or the bound nearest it (decision 81). A bound holds the time only on the
bound’s own date.
Methods
atLeast
DateTimeDomain atLeast(LocalDateTime time)time or later.
atMost
DateTimeDomain atMost(LocalDateTime time)time or sooner.
greaterThan
DateTimeDomain greaterThan(LocalDateTime time)Later than time.
lessThan
DateTimeDomain lessThan(LocalDateTime time)Sooner than time.
every
DateTimeDomain every(Duration step)Only times a whole number of steps from midnight: .every(Duration.ofMillis(1)).
The step must divide a day.
inZones
Domain<ZonedDateTime> inZones(Domain<? extends ZoneId> zones)Each date-time placed in a zone drawn from zones, after it: .inZones(offsets()), the same on every machine, or .inZones(zones()), whose
transitions are edges. A wall time the zone skips moves later by the gap; one it repeats takes
the earlier offset, or the later as a choice. Provisional (decisions 83 and 91).
inSerials
Domain<Double> inSerials(Serial system)The date-times drawn as serial numbers in system, a day and its fraction: dateTimes().inSerials(Serial.OLE_AUTOMATION). As DateDomain#inSerials, with times
whose fractions are edges too: 0, 0.5, a millisecond, and under half a millisecond before 1.