oc-calendar: Initialise NSCalendarDate with a SYSTEMTIME struct

The method computes the date of a SYSTEMTIME structure, in which the day
within the month is given by the Nth occurrence of a weekday (see
[MS-OXOCAL] 2.2.1.39).
This commit is contained in:
Juan Vallés
2015-12-11 10:36:59 +01:00
parent aeeeeea802
commit d2ea6fef2e
2 changed files with 62 additions and 1 deletions
+2
View File
@@ -37,6 +37,8 @@
- (BOOL) isNever; /* occurs on 4500-12-31 */
+ (NSCalendarDate *) dateFromSystemTime: (struct SYSTEMTIME) date
andRuleYear: (uint16_t) rYear;
@end
NSComparisonResult NSDateCompare (id date1, id date2, void *);