mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Added NSTimeZone.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@574 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ebbbc52827
commit
805d7d9c0f
1 changed files with 52 additions and 4 deletions
|
@ -1,8 +1,5 @@
|
|||
/* Interface for NSDate for GNUStep
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Jeremy Bettis <jeremy@hksys.com>
|
||||
Date: March 1995
|
||||
Copyright (C) 1994 NeXT Computer, Inc.
|
||||
|
||||
This file is part of the GNU Objective C Class Library.
|
||||
|
||||
|
@ -28,9 +25,12 @@
|
|||
|
||||
typedef double NSTimeInterval;
|
||||
|
||||
@class NSArray;
|
||||
@class NSCalendarDate;
|
||||
@class NSDictionary;
|
||||
@class NSString;
|
||||
@class NSTimeZone;
|
||||
@class NSTimeZoneDetail;
|
||||
|
||||
@interface NSDate : NSObject <NSCopying>
|
||||
|
||||
|
@ -80,4 +80,52 @@ typedef double NSTimeInterval;
|
|||
|
||||
@end
|
||||
|
||||
@interface NSTimeZone : NSObject
|
||||
|
||||
//Initializing the class
|
||||
+ (void)initialize;
|
||||
|
||||
//Creating and Initializing an NSTimeZone
|
||||
+ (NSTimeZoneDetail *)defaultTimeZone;
|
||||
+ (NSTimeZone *)localTimeZone;
|
||||
+ (NSTimeZone *)timeZoneForSecondsFromGMT:(int)seconds;
|
||||
+ (NSTimeZoneDetail *)timeZoneWithAbbreviation:(NSString *)abbreviation;
|
||||
+ (NSTimeZone *)timeZoneWithName:(NSString *)aTimeZoneName;
|
||||
- (NSTimeZoneDetail *)timeZoneDetailForDate:(NSDate *)date;
|
||||
|
||||
//Managing Time Zones
|
||||
+ (void)setDefaultTimeZone:(NSTimeZone *)aTimeZone;
|
||||
|
||||
// Getting Time Zone Information
|
||||
+ (NSDictionary *)abbreviationDictionary;
|
||||
- (NSString *)timeZoneName;
|
||||
|
||||
//Getting Arrays of Time Zones
|
||||
+ (NSArray *)timeZoneArray;
|
||||
- (NSArray *)timeZoneDetailArray;
|
||||
|
||||
@end
|
||||
|
||||
@interface NSTimeZone (NSCoding) <NSCoding>
|
||||
- (void)encodeWithCoder:(NSCoder *)aCoder;
|
||||
- (id)initWithCoder:(NSCoder *)aDecoder;
|
||||
@end
|
||||
|
||||
@interface NSTimeZone (NSCopying) <NSCopying>
|
||||
- (id)copyWithZone:(NSZone *)zone;
|
||||
@end
|
||||
|
||||
@interface NSTimeZoneDetail : NSTimeZone
|
||||
|
||||
//Querying an NSTimeZoneDetail
|
||||
- (BOOL)isDaylightSavingTimeZone;
|
||||
- (NSString *)timeZoneAbbreviation;
|
||||
- (int)timeZoneSecondsFromGMT;
|
||||
|
||||
// comparing
|
||||
- (BOOL)isEqual:anObject;
|
||||
- (unsigned int)hash;
|
||||
|
||||
@end
|
||||
|
||||
#endif /* __NSDate_h_OBJECTS_INCLUDE */
|
||||
|
|
Loading…
Reference in a new issue