Answers for "python fiscal year prior"

1

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
Posted by: Guest on July-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language