NepaliCalendarModel
Locale-aware engine behind the pickers: BS↔AD conversion, month details, formatting, and date comparison. This is the workhorse the :ui composables construct and pass down internally.
For application code, prefer the NepaliDateConverter object facade - it exposes the same conversion / formatting / comparison utilities as ready-to-call functions, so you don't need to construct (and thread) a model instance. Reach for NepaliCalendarModel directly only when you want a single instance pinned to one locale.
Properties
Functions
Compares a CustomCalendar instance with a date represented by the given year, month, and dayOfMonth.
Formats a English date based on the specified user preferences.
Overload function of above formatNepaliDate function without date range validation.
Formats a Nepali date based on the specified user preferences. (Without validation)
A fully populated Gregorian CustomCalendar for a date given in the Gregorian calendar.
Every day of a Gregorian month as a CustomCalendar, in day order.
The English equivalent of every day of a Nepali month, in day order.
Grid geometry of a Gregorian month, the counterpart of getNepaliMonth.
The Bikram Sambat equivalent of every day of a Gregorian month, in day order, with null for days before the conversion anchor.
Whether the given English date has a Bikram Sambat equivalent in the supported table.
Parses a date string into a CustomCalendar.
Parses a date string into an English CustomCalendar, the counterpart of parse.