Methods
date.current_quarter()
Return the standard Bikram Sambat calendar quarter number from one to four for the current date.
The current_quarter method returns an integer from 1 to 4 designating the standard calendar quarter containing the current date. Calendar quarters divide the Bikram Sambat year into four sequential segments starting from 1 Baisakh, which differs from government fiscal trimesters that commence in Shrawan.
Import
from nepali_date_library import NepaliDateSignature
def current_quarter(self) -> int:Parameters
- None.
Return Value
- Type:
int - Range:
1to4 - Description: Standard calendar quarter number.
Example
from nepali_date_library import NepaliDate
date = NepaliDate("2081-01-15") # Baisakh
print(date.current_quarter()) # 1
date2 = NepaliDate("2081-07-15") # Kartik
print(date2.current_quarter()) # 3Related
date.fiscal_quarter(): Official fiscal trimester number.Calendar Quarters Guide: Comparison guide.
Advertisement
date.get_weeks_in_month()
Calculate the number of calendar week rows required to render the current month in a grid.
date.format()
Format a NepaliDate instance into a custom string using token patterns for English and Nepali output.