NepaliCalendarDefaults

Calendar-only defaults exposed by the :nepali-date-picker:core module.

Holds the supported year ranges and the boundary CustomCalendar instances used by the converter logic. Kept Compose-free so consumers who only need conversion utilities can depend on :core without pulling Material3 / UI dependencies.

Properties

Link copied to clipboard

End Nepali calendar. Will change overtime as the supported range grows.

Link copied to clipboard

Supported range of years in the English (Gregorian) calendar.

Link copied to clipboard
const val FIRST_DAY_OF_WEEK: Int = 1

The default first day of the week (1 = Sunday).

Link copied to clipboard

English years spanned by the default NepaliYearRange.

Link copied to clipboard

Latest English date that converts: the last day of EnglishYearRange.

Link copied to clipboard

Earliest English date that converts, matching startingEnglishCalendar.

Link copied to clipboard

Supported range of years in the Nepali (Bikram Sambat) calendar.

Link copied to clipboard

Starting English date corresponding to startingNepaliCalendar.

Link copied to clipboard

Starting Nepali date used as the conversion anchor.

Functions

Link copied to clipboard
fun gregorianYearRangeFor(nepaliYearRange: IntRange): IntRange

The English years a Gregorian-first picker should offer for a given Bikram Sambat nepaliYearRange, so both calendars page over the same span of real days.