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 NepaliDateSignature
@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"Related
NepaliDate.maximum(): Latest supported date boundary.NepaliDate.is_valid(): Validate date coordinates.
Advertisement
NepaliDate.is_valid()
Static validation function to verify whether a given year, month, and day combination forms a valid Bikram Sambat date.
NepaliDate.maximum()
Static method returning the maximum supported date boundary for the NepaliDate calendar engine.