NepaliMonthCalendar

data class NepaliMonthCalendar(val year: Int, val month: Int, val totalDaysInMonth: Int, val firstDayOfMonth: Int, val lastDayOfMonth: Int, val daysFromStartOfWeekToFirstOfMonth: Int = firstDayOfMonth - 1)(source)

Represents a calendar month in the Nepali calendar system.

This data class provides information about a specific month in a Nepali calendar year, including the total number of days, the day of the week for the first and last days of the month, and the number of days from the start of the week to the first day of the month.

Constructors

Link copied to clipboard
constructor(year: Int, month: Int, totalDaysInMonth: Int, firstDayOfMonth: Int, lastDayOfMonth: Int, daysFromStartOfWeekToFirstOfMonth: Int = firstDayOfMonth - 1)

Properties

Link copied to clipboard

The number of days from the start of the week (Sunday) to the first day of the month.

Link copied to clipboard

The day of the week (1-7, where 1 is Sunday) for the first day of the month.

Link copied to clipboard

The day of the week (1-7, where 1 is Sunday) for the last day of the month.

Link copied to clipboard
val month: Int

The Nepali month (1-12).

Link copied to clipboard

The total number of days in the month (1-32).

Link copied to clipboard
val year: Int

The Nepali year.

Functions

Link copied to clipboard
fun indexIn(years: IntRange): Int

Returns the position of a CustomCalendar within given years range.