Fiscal Year & Quarters
date.fiscal_quarter_dates()
Method to retrieve exact start and end boundary dates for the active fiscal quarter.
The fiscal_quarter_dates method computes the exact starting date and ending date for the fiscal quarter containing the current date instance. It returns an object containing boundary dates as new NepaliDate objects, which is helpful for quarterly financial reporting, audit periods, and tax filing windows.
Import
from nepali_date_library import NepaliDateSignature
def fiscal_quarter_dates(self) -> Dict[str, NepaliDate]:Parameters
- None.
Return Value
- Type:
Dict[str, NepaliDate] - Structure:
"start":NepaliDateobject positioned on the first day of the fiscal quarter at midnight."end":NepaliDateobject positioned on the final day of the fiscal quarter.
Examples
Generating Quarterly Accounting Windows
from nepali_date_library import NepaliDate
date = NepaliDate("2081-05-15") # Bhadra (Q1)
quarter_info = date.fiscal_quarter_dates()
start_date = quarter_info["start"]
end_date = quarter_info["end"]
print(f"Q1 starts: {start_date.format('YYYY-MM-DD')}") # "2081-04-01" (1 Shrawan)
print(f"Q1 ends: {end_date.format('YYYY-MM-DD')}") # "2081-06-30" (End of Aswin)Related
NepaliDate.get_fiscal_quarter(): Look up boundaries for any quarter.date.fiscal_quarter(): Retrieve the active quarter index.
Advertisement
date.fiscal_quarter()
Method to calculate the active fiscal trimester quarter number for a NepaliDate instance.
NepaliDate.get_fiscal_quarter()
Static method to determine the fiscal trimester number for any specified month index.