Monotone-Parent: 3c0814786842608f4b2aea659b16c3eb7e694f9d

Monotone-Revision: bc3ed474ad46d79c92b1456be764f4803b264d92

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-07-26T20:56:33
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2012-07-26 20:56:33 +00:00
parent 9128894469
commit b622a433e9
3 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2012-07-26 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* iCalTimeZonePeriod.m (-recurrenceRule): new accessor for the
"rrule" element.
(-startDate): made method public.
(-compare:): new method that compare two periods based on their
startDate, for timezone definitions which have a "standard" or
"daylight" period for more that one years.
2012-05-30 Francis Lachapelle <flachapelle@inverse.ca>
* iCalRepeatableEntityObject.m (-exceptionDatesWithTimeZone:)

View File

@ -25,11 +25,20 @@
#import "CardGroup.h"
@class NSCalendarDate;
@class iCalRecurrenceRule;
@interface iCalTimeZonePeriod : CardGroup
- (NSCalendarDate *) startDate;
- (iCalRecurrenceRule *) recurrenceRule;
- (NSCalendarDate *) occurenceForDate: (NSCalendarDate *) refDate;
- (int) secondsOffsetFromGMT;
- (NSComparisonResult) compare: (iCalTimeZonePeriod *) otherPeriod;
@end
#endif /* ICALTIMEZONEPERIOD_H */

View File

@ -109,6 +109,11 @@
dateTime];
}
- (iCalRecurrenceRule *) recurrenceRule
{
return (iCalRecurrenceRule *) [self firstChildWithTag: @"rrule"];
}
/**
* This method returns the date corresponding for to the start of the period
* in the year of the reference date.
@ -184,4 +189,9 @@
return [self _secondsOfOffset: @"tzoffsetto"];
}
- (NSComparisonResult) compare: (iCalTimeZonePeriod *) otherPeriod
{
return [[self startDate] compare: [otherPeriod startDate]];
}
@end