public DateEntityRange extends Value
Both class DateEntityValue && class DateIntervalEntityValue can be seen as date range.
@NotNull java.time.ZonedDateTime start()
Returns the start inclusive date. Ie
9h -> 9h
from 9h to 10h -> 9h
@NotNull java.time.ZonedDateTime inclusiveEnd()
Returns the end inclusive date.
from 9h to 10h -> 10h
from 9h to 10h00 -> 10h
9h -> 10h
@NotNull
java.time.ZonedDateTime inclusiveEnd(@NotNull
java.time.ZoneId zoneId)
Returns the end inclusive date. Ie:
from 9h to 10h -> 10h
from 9h to 10h00 -> 10h
9h -> 10h
this morning (4h to 12h) -> 12h
@NotNull java.time.ZonedDateTime end()
Returns the end exclusive date.
from 9h to 10h -> 11h
from 9h to 10h00 -> 10h01
9h -> 10h
this morning (4h to 12h) -> 13h
@NotNull
java.time.ZonedDateTime end(@NotNull
java.time.ZoneId zoneId)
Returns the end exclusive date. Ie:
from 9h to 10h -> 11h
from 9h to 10h00 -> 10h01
9h -> 10h
@NotNull java.time.Duration duration()