Nepali DateNepali DateBikram Sambat Date Engine
Methods

date.end_of_week()

Return a new NepaliDate instance set to the final day of the current week on Saturday.

The end_of_week method produces a new NepaliDate instance representing the last day of the week containing the current date. In standard Nepali calendar practice, Saturday is regarded as the final day of the weekly cycle.


Import

from nepali_date_library import NepaliDate

Signature

def end_of_week(self, start_of_week: int = 0) -> NepaliDate:

Parameters

ParameterTypeRequiredDefaultDescription
start_of_weekintNo0Weekday index treated as week start.

Return Value

  • Type: NepaliDate
  • Description: New date instance set to Saturday (index 6).

Example

from nepali_date_library import NepaliDate

date = NepaliDate("2081-07-15")
week_end = date.end_of_week()
print(week_end.get_day()) # 6 (Saturday)

Advertisement

On this page