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-era | *era | *proleptic-year | *
---|---|---|
2 | CE | 2 | *
1 | CE | 1 | *
1 | BCE | 0 | *
2 | BCE | -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
* {@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*/
}
}
}
}