public static DateList getDateListInstance ( final DateList origList ) { final DateList list = new DateList ( origList . getType ( ) ) ; if ( origList . isUtc ( ) ) { list . setUtc ( true ) ; } else { list . setTimeZone ( origList . getTimeZone ( ) ) ; } return list ; }
Instantiate a new datelist with the same type timezone and utc settings as the origList .