declare namespace java { namespace time { namespace chrono { /** * An era in the ISO calendar system. *

* The ISO-8601 standard does not define eras. * A definition has therefore been created with two eras - 'Current era' (CE) for * years on or after 0001-01-01 (ISO), and 'Before current era' (BCE) for years before that. * * * * * * * * * * * * * * * * * * * * * * *
year-of-eraeraproleptic-year
2CE2
1CE1
1BCE0
2BCE-1
*

* Do not use {@code ordinal()} to obtain the numeric representation of {@code IsoEra}. * Use {@code getValue()} instead. * @implSpec This is an immutable and thread-safe enum. * @since 1.8 */ // @ts-ignore class IsoEra extends java.lang.Enum implements java.time.chrono.Era { /** * The singleton instance for the era before the current one, 'Before Current Era', * which has the numeric value 0. */ // @ts-ignore public static readonly BCE: java.time.chrono.IsoEra /** * The singleton instance for the current era, 'Current Era', * which has the numeric value 1. */ // @ts-ignore public static readonly CE: java.time.chrono.IsoEra // @ts-ignore public static values(): java.time.chrono.IsoEra[] // @ts-ignore public static valueOf(name: java.lang.String | string): java.time.chrono.IsoEra /** * Obtains an instance of {@code IsoEra} from an {@code int} value. *

* {@code IsoEra} is an enum representing the ISO eras of BCE/CE. * This factory allows the enum to be obtained from the {@code int} value. * @param isoEra the BCE/CE value to represent, from 0 (BCE) to 1 (CE) * @return the era singleton, not null * @throws DateTimeException if the value is invalid */ // @ts-ignore public static of(isoEra: number /*int*/): java.time.chrono.IsoEra /** * Gets the numeric era {@code int} value. *

* The era BCE has the value 0, while the era CE has the value 1. * @return the era value, from 0 (BCE) to 1 (CE) */ // @ts-ignore public getValue(): number /*int*/ } } } }