Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python fiscal year prior

import fiscalyear

fiscalyear.START_MONTH = 7

targetFiscalYear = fiscalyear.FiscalYear.current()  
# returns: FY2022 Type: FiscalYear
intTargetFiscalYear = fiscalyear.FiscalYear.current().fiscal_year 
# returns: 2022 Type: int
prevFiscalYear = fiscalyear.FiscalYear.current().prev_fiscal_year  
# returns: FY2021 Type: FiscalYear
intPrevFiscalYear = fiscalyear.FiscalYear.current().prev_fiscal_year.fiscal_year 
# returns: 2021 Type: int
 
PREVIOUS NEXT
Tagged: #python #fiscal #year #prior
ADD COMMENT
Topic
Name
6+5 =