CalendarSystem

The calendar a date is expressed in.

This is the named form of the era integer carried by CustomCalendar and MonthCalendar (1 = AD, 2 = BS), so the two representations never disagree: era is the single mapping.

The pickers use this to decide which calendar to display. A selected date is always stored as BIKRAM_SAMBAT, whichever system is on screen, so switching the display is lossless.

Entries

Link copied to clipboard

Bikram Sambat, the official calendar of Nepal. era 2.

Link copied to clipboard

Gregorian, referred to as the English or AD calendar throughout this library. era 1.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val era: Int

the era value a CustomCalendar in this system carries.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

The other system. With two systems this is the toggle target.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.