OnsetParser std = new OnsetParser(mDayToStdRule, mDayToStdDtStart); OnsetParser day = new OnsetParser(mStdToDayRule, mStdToDayDtStart); mStandardOnset = new SimpleOnset(std.mWeek, std.mDayOfWeek, std.mMonth, std.mHour, std.mMinute, std.mSecond); mDaylightOnset = new SimpleOnset(day.mWeek, day.mDayOfWeek, day.mMonth, day.mHour, day.mMinute, day.mSecond);
mStandardOnset = parseOnset(mDayToStdRule, mDayToStdDtStart); mDaylightOnset = parseOnset(mStdToDayRule, mStdToDayDtStart);
    protected void initFromICalData() {        setRawOffset(mStandardOffset);        if (mHasDaylight) {            OnsetParser std = new OnsetParser(mDayToStdRule, mDayToStdDtStart);            OnsetParser day = new OnsetParser(mStdToDayRule, mStdToDayDtStart);            mStandardOnset = new SimpleOnset(std.mWeek, std.mDayOfWeek, std.mMonth,                                             std.mHour, std.mMinute, std.mSecond);            mDaylightOnset = new SimpleOnset(day.mWeek, day.mDayOfWeek, day.mMonth,                                             day.mHour, day.mMinute, day.mSecond);            SimpleTimeZoneRule stzDaylight =                new SimpleTimeZoneRule(mDaylightOnset);            setStartRule(stzDaylight.mMonth,                         stzDaylight.mDayOfMonth,                         stzDaylight.mDayOfWeek,                         stzDaylight.mDtStartMillis);            SimpleTimeZoneRule stzStandard =                new SimpleTimeZoneRule(mStandardOnset);            setEndRule(stzStandard.mMonth,                       stzStandard.mDayOfMonth,                       stzStandard.mDayOfWeek,                       stzStandard.mDtStartMillis);            setDSTSavings(mDaylightOffset - mStandardOffset);        }    }