Static Methods
NepaliDate::maximum()
Static method returning the maximum supported date boundary for the NepaliDate calendar engine.
The maximum static method returns a native PHP DateTimeImmutable object representing the latest Gregorian date supported by the library calendar engine. This corresponds to the final day of Chaitra in year 2100 BS and serves as an upper bound for date validation and calendar limits.
Import
use NepaliDateLibrary\NepaliDate;Signature
public static function maximum(): DateTimeImmutable;Parameters
- None.
Return Value
- Type:
DateTimeImmutable - Value: Gregorian UTC datetime corresponding to the last day of Chaitra in year
2100 BS(mid April 2044 AD).
Examples
use NepaliDateLibrary\NepaliDate;
$maxDate = NepaliDate::maximum();
echo "Latest supported AD date: " . $maxDate->format('Y-m-d') . PHP_EOL;
// Construct NepaliDate from the maximum boundary
$ndMax = new NepaliDate($maxDate);
echo "Latest BS date: " . $ndMax->format('YYYY-MM-DD');Related
NepaliDate::minimum(): Earliest supported date boundary.NepaliDate::isValid(): Check date bounds.
Advertisement
NepaliDate::minimum()
Static method returning the minimum supported date boundary for the NepaliDate calendar engine.
NepaliDate::getMonthName()
Static utility to retrieve the localized English or Nepali month name for any month index.