public void setPeriod ( ReadableInterval interval ) { if ( interval == null ) { setPeriod ( 0L ) ; } else { Chronology chrono = DateTimeUtils . getChronology ( interval . getChronology ( ) ) ; setPeriod ( interval . getStartMillis ( ) , interval . getEndMillis ( ) , chrono ) ; } }
Sets all the fields in one go from an interval using the ISO chronology and dividing the fields using the period type .