Nepali DateNepali DateBikram Sambat Date Engine
Methods

Packagistdate->isAfter()

Check whether the current date occurs chronologically after another specified date.

The isAfter method evaluates whether the current NepaliDate instance occurs chronologically later than another date or timestamp. It compares exact millisecond values to determine chronological order accurately.


Import

use NepaliDateLibrary\NepaliDate;

Signature

public function isAfter(NepaliDate $date): bool;

Parameters

ParameterTypeRequiredDescription
$dateNepaliDateYesTarget date to compare against.

Return Value

  • Type: bool
  • Description: Returns true if current date is chronologically later than $date.

Example

use NepaliDateLibrary\NepaliDate;

$d1 = new NepaliDate('2081-01-15');
$d2 = new NepaliDate('2081-01-01');

var_dump($d1->isAfter($d2)); // true

Advertisement

On this page