mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 21:07:14 +00:00
Monotone-Parent: c1fa71027de8d19eaa232cf89370ad4655d2d15b
Monotone-Revision: 64e49d499c79080e88278175b2826dfc85d1c635 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-22T16:32:22 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
f0ff11f0a5
commit
1a58f1b4f9
3 files changed
+36
No files matched your search
@@ -41,6 +41,9 @@
|
||||
|
||||
- (NSString *) rfc822DateString;
|
||||
|
||||
+ (id) distantFuture;
|
||||
+ (id) distantPast;
|
||||
|
||||
@end
|
||||
|
||||
#endif /* NSCALENDARDATE_SCHEDULER_H */
|
||||
@@ -136,4 +136,29 @@ static NSString *rfc822Months[] = {@"", @"Jan", @"Feb", @"Mar", @"Apr",
|
||||
timeZoneShift];
|
||||
}
|
||||
|
||||
#define secondsOfDistantFuture 63113990400.0
|
||||
#define secondsOfDistantPast -63113817600.0
|
||||
|
||||
+ (id) distantFuture
|
||||
{
|
||||
static NSCalendarDate *date = nil;
|
||||
|
||||
if (!date)
|
||||
date
|
||||
= [[self alloc] initWithTimeIntervalSinceReferenceDate: secondsOfDistantFuture];
|
||||
|
||||
return date;
|
||||
}
|
||||
|
||||
+ (id) distantPast
|
||||
{
|
||||
static NSCalendarDate *date = nil;
|
||||
|
||||
if (!date)
|
||||
date
|
||||
= [[self alloc] initWithTimeIntervalSinceReferenceDate: secondsOfDistantPast];
|
||||
|
||||
return date;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user