public static long getDayStartTime ( final long time ) { final Calendar start = Calendar . getInstance ( ) ; start . setTimeInMillis ( time ) ; final int year = start . get ( Calendar . YEAR ) ; final int month = start . get ( Calendar . MONTH ) ; final int day = start . get ( Calendar . DATE ) ; start . set ( year , month , day , 0 , 0 , 0 ) ; start . set ( Calendar . MILLISECOND , 0 ) ; return start . getTimeInMillis ( ) ; }
Gets the day start time with the specified time .