Nepali DateNepali DateBikram Sambat Date Engine
Methods

Packagistdate->isLeapYear()

Determine whether the current Bikram Sambat calendar year has three hundred sixty six or more days.

The isLeapYear method checks whether the active Bikram Sambat year contains 366 or more days based on official solar calendar tables. Because Bikram Sambat year lengths depend on astronomical calculations rather than fixed leap year cycles, this method checks the actual cumulative day count for the year.


Import

use NepaliDateLibrary\NepaliDate;

Signature

public function isLeapYear(): bool;

Parameters

  • None.

Return Value

  • Type: bool
  • Description: Returns true if the year has 366 or more days.

Example

use NepaliDateLibrary\NepaliDate;

$date = new NepaliDate('2081-01-01');
var_dump($date->isLeapYear());

Advertisement

On this page