Package-level declarations

Serializers for the core calendar models. Register or reference these when persisting or transmitting Nepali Date Picker types through a kotlinx-serialization format.

Types

Link copied to clipboard

KSerializer for CustomCalendar - full struct form. All eleven fields are serialized; defaults from the data class are honored on the way back in so older payloads missing dayOfWeekInMonth / dayOfWeek / dayOfYear / weekOfMonth / weekOfYear still decode (those fields default to -1).

Link copied to clipboard

KSerializer for NepaliMonthCalendar - struct form with five required fields and one optional (daysFromStartOfWeekToFirstOfMonth, which defaults to firstDayOfMonth - 1).

Link copied to clipboard

Default KSerializer for SimpleDate - encodes as the string "YYYY-MM-DD".

Link copied to clipboard

Alternative KSerializer for SimpleDate - encodes as a JSON object {"year": …, "month": …, "dayOfMonth": …}.

Link copied to clipboard

Default KSerializer for SimpleTime - encodes as the string "HH:mm:ss.NNNNNNNNN", always in Asia/Kathmandu (the timezone all SimpleTimes in this library are anchored to). The nanosecond fractional part is omitted when nanosecond == 0 to keep wire payloads small.

Properties

Link copied to clipboard

Ready-to-register SerializersModule for all four data types.