📅  最后修改于: 2022-03-11 14:45:43.293000             🧑  作者: Mango
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