Fiscal Year & Quarters
NepaliDate::getCurrentFiscalYear()
Method to retrieve the formatted fiscal year string for a given NepaliDate instance.
The getCurrentFiscalYear method determines which official Nepalese fiscal year contains the current date instance. It returns a standardized fiscal year string such as 2081/82 based on whether the date falls before or after the 1 Shrawan fiscal transition boundary.
Import
use NepaliDateLibrary\NepaliDate;Signature
public static function getCurrentFiscalYear(): int;Parameters
- None.
Return Value
- Type:
int - Description: The starting four digit Bikram Sambat calendar year of the current fiscal year.
- Example: Returns
2081for fiscal year 2081/82 BS.
Examples
Checking Active Fiscal Year
use NepaliDateLibrary\NepaliDate;
$fyStart = NepaliDate::getCurrentFiscalYear();
$fyLabel = "{$fyStart}/" . substr((string) ($fyStart + 1), -2);
echo "Fiscal Year: {$fyLabel} BS"; // e.g. "2081/82 BS"Related
date->getCurrentFiscalYearQuarter(): Get the active fiscal trimester number.date->getCurrentFiscalYearQuarterDates(): Get boundary dates of the active fiscal quarter.
Advertisement
Fiscal Year & Quarters Guide
Architecture and calculation rules for Nepal official fiscal year and quarterly trimester accounting cycles.
date->getCurrentFiscalYearQuarter()
Method to calculate the active fiscal trimester quarter number for a NepaliDate instance.