- All Known Implementing Classes:
PatternPeriod
public interface Period
The period of a periodic segment (04-segment.md ยง3): presets
YEAR, YEAR_MONTH and
YEAR_MONTH_DAY, or your own.-
Field Details
-
YEAR
"2026". -
YEAR_MONTH
"202610". -
YEAR_MONTH_DAY
"20261026".
-
-
Method Details
-
keyOf
The key of the periodinstantfalls in.- Parameters:
instant- the instantzone- the time zone the periods follow- Returns:
- the period key, such as
"20261026"
-
endOf
The end of the period, exclusive.- Parameters:
key- the period keyzone- the time zone the periods follow- Returns:
- the first instant after the period
-