Java Month monthToTerm(int month)

Here you can find the source of monthToTerm(int month)

Description

Java months are zero-based, January = 0 thru December = 11

License

Open Source License

Parameter

Parameter Description
month a parameter

Declaration

private static int monthToTerm(int month) 

Method Source Code

//package com.java2s;

public class Main {
    /**//  w  ww.  j ava 2s  .  co m
     * Java months are zero-based, January = 0 thru December = 11
     *
     * @param month
     * @return
     */
    private static int monthToTerm(int month) {
        int term = (month / 3) + 1;
        return term;
    }
}

Related

  1. monthFromDateValue(long x)
  2. monthLength(int year, int month)
  3. monthMillis(int year, int monthNum)
  4. monthStringToInteger(String month)
  5. MonthText(int iIndex)
  6. nextMonth(String s)
  7. nextMonthIndex(int current, int step)
  8. normalizeMonth(final int month)
  9. normalizeMonth(String word)