Fiscal Year & Quarters
date.fiscal_quarter()
Method to calculate the active fiscal trimester quarter number for a NepaliDate instance.
The fiscal_quarter method returns an integer from 1 to 4 representing the active fiscal trimester of the current date. Because Nepal fiscal calendar starts in Shrawan, quarter 1 covers Shrawan through Ashwin, quarter 2 spans Kartik through Poush, quarter 3 covers Magh through Chaitra, and quarter 4 spans Baisakh through Ashadh.
Import
from nepali_date_library import NepaliDateSignature
def fiscal_quarter(self) -> int:Parameters
- None.
Return Value
- Type:
int - Range:
1to4 - Description: The fiscal trimester index for the date.
Trimester Mapping Table
| Month Index | Month Name | Fiscal Quarter | Trimester Label |
|---|---|---|---|
3 | Shrawan | 1 | First Trimester (Q1) |
4 | Bhadra | 1 | First Trimester (Q1) |
5 | Aswin | 1 | First Trimester (Q1) |
6 | Kartik | 2 | Second Trimester (Q2) |
7 | Mangsir | 2 | Second Trimester (Q2) |
8 | Poush | 2 | Second Trimester (Q2) |
9 | Magh | 3 | Third Trimester (Q3) |
10 | Falgun | 3 | Third Trimester (Q3) |
11 | Chaitra | 3 | Third Trimester (Q3) |
0 | Baisakh | 4 | Fourth Trimester (Q4) |
1 | Jestha | 4 | Fourth Trimester (Q4) |
2 | Asar | 4 | Fourth Trimester (Q4) |
Examples
from nepali_date_library import NepaliDate
date1 = NepaliDate("2081-04-15") # Shrawan
print(date1.fiscal_quarter()) # 1
date2 = NepaliDate("2081-07-20") # Kartik
print(date2.fiscal_quarter()) # 2
date3 = NepaliDate("2081-10-10") # Magh
print(date3.fiscal_quarter()) # 3
date4 = NepaliDate("2082-01-05") # Baisakh
print(date4.fiscal_quarter()) # 4Related
date.fiscal_quarter_dates(): Retrieve boundary start and end dates.date.current_quarter(): Standard Bikram Sambat calendar quarter.
Advertisement
NepaliDate.current_fiscal_year()
Method to retrieve the formatted fiscal year string for a given NepaliDate instance.
date.fiscal_quarter_dates()
Method to retrieve exact start and end boundary dates for the active fiscal quarter.