private static long getTime ( int year , int month , int day , int hour , int minute , int second , int millisecond ) { Calendar cal = Calendar . getInstance ( Util . TIME_ZONE_UTC ) ; cal . set ( year , month - 1 , day , hour , minute , second ) ; cal . set ( Calendar . MILLISECOND , millisecond ) ; return cal . getTimeInMillis ( ) ; }
Returns the epoch time in ms .