Period getChronology() example
Description
Period getChronology()
gets the chronology of this period, which is the ISO calendar system.
Syntax
getChronology
has the following syntax.
public IsoChronology getChronology()
Example
The following example shows how to use getChronology
.
import java.time.Period;
//from ww w. ja v a 2s . c o m
public class Main {
public static void main(String[] args) {
Period p = Period.ofMonths(1);
System.out.println(p.getChronology());
}
}
The code above generates the following result.