source: trunk/Cocoa/Pester/Source/NSCalendarDate-OFExtensions.h@ 516

Last change on this file since 516 was 102, checked in by Nicholas Riley, 21 years ago

Pester 1.1b3

File size: 946 bytes
Line 
1// Copyright 1997-2002 Omni Development, Inc. All rights reserved.
2//
3// This software may only be used and reproduced according to the
4// terms in the file OmniSourceLicense.html, which should be
5// distributed with this project and can also be found at
6// http://www.omnigroup.com/DeveloperResources/OmniSourceLicense.html.
7//
8// $Header: /Network/Source/CVS/OmniGroup/Frameworks/OmniFoundation/OpenStepExtensions.subproj/NSCalendarDate-OFExtensions.h,v 1.12 2002/03/09 01:54:02 kc Exp $
9
10#import <Foundation/NSCalendarDate.h>
11
12@interface NSCalendarDate (OFExtensions)
13+ (NSCalendarDate *)unixReferenceDate;
14- (void)setToUnixDateFormat;
15- initWithTime_t:(int)time;
16
17- (NSCalendarDate *)safeReferenceDate;
18- (NSCalendarDate *)firstDayOfMonth;
19- (NSCalendarDate *)lastDayOfMonth;
20- (int)numberOfDaysInMonth;
21- (int)weekOfMonth;
22 // Returns 1 through 6. Weeks are Sunday-Saturday.
23- (BOOL)isInSameWeekAsDate:(NSCalendarDate *)otherDate;
24
25@end
Note: See TracBrowser for help on using the repository browser.