Nepali DateNepali DateBikram Sambat Date Engine
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 NepaliDate

Signature

def fiscal_quarter(self) -> int:

Parameters

  • None.

Return Value

  • Type: int
  • Range: 1 to 4
  • Description: The fiscal trimester index for the date.

Trimester Mapping Table

Month IndexMonth NameFiscal QuarterTrimester Label
3Shrawan1First Trimester (Q1)
4Bhadra1First Trimester (Q1)
5Aswin1First Trimester (Q1)
6Kartik2Second Trimester (Q2)
7Mangsir2Second Trimester (Q2)
8Poush2Second Trimester (Q2)
9Magh3Third Trimester (Q3)
10Falgun3Third Trimester (Q3)
11Chaitra3Third Trimester (Q3)
0Baisakh4Fourth Trimester (Q4)
1Jestha4Fourth Trimester (Q4)
2Asar4Fourth 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())     # 4

Advertisement

On this page