Nepali DateNepali DateBikram Sambat Date Engine
Static Methods

NepaliDate.minimum()

Static method returning the minimum supported date boundary for the NepaliDate calendar engine.

The minimum static method returns a native Python datetime object representing the earliest Gregorian date supported by the library calendar engine. This corresponds to the first day of Baisakh in year 1976 BS and provides a reliable lower boundary for date pickers and form input validation.


Import

from nepali_date_library import NepaliDate

Signature

@staticmethod
def minimum() -> datetime:

Parameters

  • None.

Return Value

  • Type: datetime
  • Value: Gregorian UTC datetime corresponding to 1976-01-01 BS (mid April 1919 AD).

Examples

from nepali_date_library import NepaliDate

min_date = NepaliDate.minimum()
print(f"Earliest supported AD date: {min_date}")

# Construct NepaliDate from the minimum boundary
nd_min = NepaliDate(min_date)
print(f"Earliest BS date: {nd_min.format('YYYY-MM-DD')}") # "1976-01-01"

Advertisement

On this page