Ejemplo n.º 1
0
 public Object clone() {
   DateTimeData dt =
       new DateTimeData(
           this.year,
           this.month,
           this.day,
           this.hour,
           this.minute,
           this.second,
           this.utc,
           this.originalValue,
           this.normalized,
           this.type);
   dt.canonical = this.canonical;
   dt.position = position;
   dt.timezoneHr = this.timezoneHr;
   dt.timezoneMin = this.timezoneMin;
   dt.unNormYear = this.unNormYear;
   dt.unNormMonth = this.unNormMonth;
   dt.unNormDay = this.unNormDay;
   dt.unNormHour = this.unNormHour;
   dt.unNormMinute = this.unNormMinute;
   dt.unNormSecond = this.unNormSecond;
   return dt;
 }
Ejemplo n.º 2
0
 /** @param date */
 protected void saveUnnormalized(DateTimeData date) {
   date.unNormYear = date.year;
   date.unNormMonth = date.month;
   date.unNormDay = date.day;
   date.unNormHour = date.hour;
   date.unNormMinute = date.minute;
   date.unNormSecond = date.second;
 }