src/share/classes/java/time/temporal/ChronoUnit.java
Print this page
*** 176,186 ****
MILLENNIA("Millennia", Duration.ofSeconds(31556952L * 1000L)),
/**
* Unit that represents the concept of an era.
* The ISO calendar system doesn't have eras thus it is impossible to add
* an era to a date or date-time.
! * The estimated duration of the era is artificially defined as {@code 1,000,00,000 Years}.
* <p>
* When used with other calendar systems there are no restrictions on the unit.
*/
ERAS("Eras", Duration.ofSeconds(31556952L * 1000_000_000L)),
/**
--- 176,186 ----
MILLENNIA("Millennia", Duration.ofSeconds(31556952L * 1000L)),
/**
* Unit that represents the concept of an era.
* The ISO calendar system doesn't have eras thus it is impossible to add
* an era to a date or date-time.
! * The estimated duration of the era is artificially defined as {@code 1,000,000,000 Years}.
* <p>
* When used with other calendar systems there are no restrictions on the unit.
*/
ERAS("Eras", Duration.ofSeconds(31556952L * 1000_000_000L)),
/**