예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 // implement BasicDatetime
 public void setZonedTime(long value, TimeZone zone) {
   this.internalTime = value + zone.getOffset(value);
 }