Code example for TimeZone

Methods: getOffset

0
    return midnight(new Date().getTime());
  } 
 
  /** The time for midnight of the given time. */ 
  public static long midnight(final long time) {
    return time / MILLISECONDS_PER_DAY * MILLISECONDS_PER_DAY - TIME_ZONE.getOffset(time);
  } 
}