You can use the method Chronology.range(). For instance:
import java.time.*;
import java.time.chrono.*;
import java.time.temporal.*;
public class Test {
public static void main(String[] args) {
Chronology hijrah = HijrahChronology.INSTANCE;
ValueRange range = hijrah.range(ChronoField.YEAR);
System.out.println(range.getMinimum());
System.out.println(range.getMaximum());
}
}
This shows that the actual years are 1300-1600.
It is not clear to me whether this means that the whole year 1300 and the whole year 1600 are valid, but I suspect that so - you can probably write experimental tests for this.
source
share