Java Month getTotalMonths(long time)

Here you can find the source of getTotalMonths(long time)

Description

get Total Months

License

Open Source License

Declaration

public static long getTotalMonths(long time) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int daysInMonth = 28, monthsInYear = 12, daysInYear = daysInMonth * monthsInYear;

    public static long getTotalMonths(long time) {
        return time / daysInMonth;
    }/* ww  w. ja v  a2 s  . com*/
}

Related

  1. getQuarterLastMonth(String quarter)
  2. getRSLILMonth(int month)
  3. getSecondByMonth(int month)
  4. getStatis_month()
  5. getTargetMonth(Integer targetYm)
  6. getYMonth(String dateFromDB)
  7. impleMonth(int month)
  8. intToMonth(int m)
  9. isMonthInRange(int month)