Here you can find the source of getFiscalMonth(int month, int fiscalMonthOffset)
Parameter | Description |
---|---|
date | a parameter |
fiscalMonthOffset | a parameter |
public static int getFiscalMonth(int month, int fiscalMonthOffset)
//package com.java2s; public class Main { /**//w ww .jav a2 s .c o m * @param date * @param fiscalMonthOffset * @return The fiscalMonth for the specified offset. * In java Month starts at 0, so add 1 to the result to get actual month */ public static int getFiscalMonth(int month, int fiscalMonthOffset) { // int month = date.get(Calendar.MONTH); int result = ((month - fiscalMonthOffset - 1) % 12) + 1; if (result < 0) { result += 12; } return result; } }