/** * Gets the value of this datetime as a milliseconds value for {@link java.sql.Time}. * * @param zone time zone in which to generate a time value for */ public long getJdbcTime(TimeZone zone) { long timeValue = getTimeValue(); return timeValue - zone.getOffset(timeValue); }
// implement BasicDatetime public void setZonedTime(long value, TimeZone zone) { this.internalTime = value + zone.getOffset(value); }