Here you can find the source of getSecondByMonth(int month)
public static long getSecondByMonth(int month)
//package com.java2s; //License from project: Apache License public class Main { public static long getSecondByMonth(int month) { return getSecondByDay(month * 30); }// w ww. ja v a 2 s . co m public static long getSecondByDay(int day) { return getSecondByHour(day * 24); } public static long getSecondByHour(int hour) { return getSecondByMinute(hour * 60); } public static long getSecondByMinute(int minute) { return (minute * 60); } }