root/Trunk/AIUtilities.framework/Versions/A/Headers/AICalendarDateAdditions.h @ 2

Revision 2, 0.9 KB (checked in by jon, 16 years ago)

Initial commit of skeletal project.

Line 
1//
2//  AICalendarDateAdditions.h
3//  AIUtilities.framework
4//
5//  Created by Peter Hosey on 2007-11-11.
6//  Copyright 2007 Adium Team. All rights reserved.
7//
8
9@interface NSCalendarDate (AICalendarDateAdditions)
10
11/*!     @brief  Convert the receiver to have the same DST status as the other date.
12 *
13 *      @par    If the receiver is in Daylight-Saving Time and the other date is not, this method returns a date created by adding one hour to the receiver (e.g., 16:00→17:00).
14 *
15 *      @par    If the receiver is not in Daylight-Saving Time and the other date is, this method returns a date created by subtracting one hour from the receiver (e.g., 17:00→16:00).
16 *
17 *      @par    If both dates are in DST, or neither date is in DST, this method returns the receiver unchanged.
18 *
19 *      @bug    This method assumes that DST is a one-hour shift. This may not be true of all states in the world that observe DST.
20 */
21- (NSCalendarDate *)dateByMatchingDSTOfDate:(NSDate *)otherDate;
22
23@end
Note: See TracBrowser for help on using the browser.