public DateEntityRange extends Value
Both class DateEntityValue && class DateIntervalEntityValue can be seen as date range.
| Modifier and Type | Interface and Description |
|---|---|
static class |
DateEntityRange.DefaultImpls
Both
class DateEntityValue && class DateIntervalEntityValue can be seen as date range. |
| Modifier and Type | Method and Description |
|---|---|
java.time.Duration |
duration() |
java.time.ZonedDateTime |
end()
Returns the end exclusive date.
|
java.time.ZonedDateTime |
end(java.time.ZoneId zoneId)
Returns the end exclusive date.
Ie:
|
java.time.ZonedDateTime |
inclusiveEnd()
Returns the end inclusive date.
|
java.time.ZonedDateTime |
inclusiveEnd(java.time.ZoneId zoneId)
Returns the end inclusive date.
Ie:
|
java.time.ZonedDateTime |
start()
Returns the start inclusive date.
Ie
|
@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()