Nepali DateNepali DateBikram Sambat Date Engine
Fiscal Year & Quarters

NepaliDate.get_fiscal_quarters()

Static utility returning all four fiscal trimesters with their constituent months and date ranges for a given year.

The static get_fiscal_quarters method returns a complete structural breakdown of all four fiscal trimesters for a specified Bikram Sambat year. Each quarter entry includes its trimester index, English and Nepali month names, and corresponding calendar boundary information.


Import

from nepali_date_library import NepaliDate

Signature

@staticmethod
def get_fiscal_quarters(
    fiscal_year: Optional[int] = None
) -> Dict[str, Dict[str, NepaliDate]]:

Parameters

ParameterTypeRequiredDescription
fiscal_yearOptional[int]NoFour digit starting Bikram Sambat year. Defaults to current fiscal year.

Return Value

  • Type: Dict[str, Dict[str, NepaliDate]]
  • Structure: A dictionary with keys "Q1", "Q2", "Q3", and "Q4", each containing "start" and "end" NepaliDate objects.

Examples

from nepali_date_library import NepaliDate

quarters = NepaliDate.get_fiscal_quarters(2081)

for q_name, boundaries in quarters.items():
    start_str = boundaries["start"].format("YYYY-MM-DD")
    end_str = boundaries["end"].format("YYYY-MM-DD")
    print(f"{q_name}: {start_str} to {end_str}")

Advertisement

On this page