public static long getNextMidnight ( Time recycle , long theTime , String tz ) { if ( recycle == null ) { recycle = new Time ( ) ; } recycle . timezone = tz ; recycle . set ( theTime ) ; recycle . monthDay ++ ; recycle . hour = 0 ; recycle . minute = 0 ; recycle . second = 0 ; return recycle . normalize ( true ) ; }
Finds and returns the next midnight after theTime in milliseconds UTC