public static long getMonthEndTime ( final long time ) { final Calendar end = Calendar . getInstance ( ) ; end . setTimeInMillis ( getDayStartTime ( time ) ) ; end . set ( Calendar . DAY_OF_MONTH , end . getActualMaximum ( Calendar . DAY_OF_MONTH ) ) ; end . set ( Calendar . HOUR , 23 ) ; end . set ( Calendar . MINUTE , 59 ) ; end . set ( Calendar . SECOND , 59 ) ; end . set ( Calendar . MILLISECOND , 999 ) ; return end . getTimeInMillis ( ) ; }
Gets the month end time with the specified time .