Package-level declarations
Immutable calendar models (CustomCalendar, SimpleDate, SimpleTime, NepaliMonthCalendar), locale (NepaliDateLocale), digit scripts, and the NepaliDateFormatter contract that drives locale-aware rendering.
CalendarSystem is the named form of the era integer (1 = AD, 2 = BS) and MonthCalendar is the calendar-tagged counterpart of NepaliMonthCalendar, so month geometry can be handled without knowing which calendar produced it. Use toMonthCalendar and toNepaliMonthCalendar to move between the two.
Types
The calendar a date is expressed in.
Represents a date in a custom calendar system with detailed information.
A data holder representing a CustomCalendar and SimpleTime.
Numeral script used when rendering digits in localized dates / times.
The geometry of one month in a given CalendarSystem: enough to lay out a weekday grid without knowing which calendar it came from.
Represents the format for displaying names (e.g., weekdays or months).
Represents different styles for formatting Nepali dates.
Parse and format SimpleDate for short numeric text-field input.
Represents locale settings for Nepali date display and formatting.
Represents the language used for Nepali date pickers.
One day of a Gregorian month beside the Bikram Sambat calendar it converts to, which is absent for a day the conversion table does not reach.
Represents the name of a month in the Nepali calendar.
Parse and format SimpleTime as the library's canonical time-of-day wire string, HH:mm:ss with an optional nine-digit fractional part.
Represents the name of a weekday in the Nepali calendar.
Represents a simple date with year, month, and day of the month.
Represents a 24Hrs format time of day (hour, minute, second, nanosecond). Strictly adjusted to the Asia/Kathmandu TimeZone.
Properties
The CalendarSystem this calendar is expressed in, or CalendarSystem.BIKRAM_SAMBAT when CustomCalendar.era holds an unrecognised value.
One English/Bikram Sambat pair per English year, each falling on a Bikram Sambat new year.
The pairs of englishDateMap, keyed by Bikram Sambat year instead of English year.
Functions
Default DigitScript for a given NepaliDatePickerLang.
Reverse lookup. If this char is a digit in any supported non-Latin script (Devanagari today), return the matching ASCII '0'..'9'. If it is already an ASCII digit, return it unchanged. Otherwise return null.
Reads this Bikram Sambat month as a calendar-tagged MonthCalendar.
Converts a CustomCalendar object to a NepaliMonthCalendar object.
Narrows this month to the Bikram Sambat-only NepaliMonthCalendar.
Converts a CustomCalendar object to a SimpleDate object.