blob: 6fa24749497d69d96fe9feedc0872fb95a522e7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
{ Parsed from Foundation.framework NSTimeZone.h }
{$ifdef TYPES}
{$ifndef NSTIMEZONE_PAS_T}
{$define NSTIMEZONE_PAS_T}
{ Constants }
const
NSTimeZoneNameStyleStandard = 0;
NSTimeZoneNameStyleShortStandard = 1;
NSTimeZoneNameStyleDaylightSaving = 2;
NSTimeZoneNameStyleShortDaylightSaving = 3;
NSTimeZoneNameStyleGeneric = 4;
NSTimeZoneNameStyleShortGeneric = 5;
{ Types }
type
NSTimeZoneNameStyle = NSInteger;
NSTimeZoneNameStylePtr = ^NSTimeZoneNameStyle;
{$endif}
{$endif}
{$ifdef RECORDS}
{$ifndef NSTIMEZONE_PAS_R}
{$define NSTIMEZONE_PAS_R}
{$endif}
{$endif}
{$ifdef FUNCTIONS}
{$ifndef NSTIMEZONE_PAS_F}
{$define NSTIMEZONE_PAS_F}
{$endif}
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSTIMEZONE_PAS_S}
{$define NSTIMEZONE_PAS_S}
{ External string constants }
var
NSSystemTimeZoneDidChangeNotification: NSString; cvar; external;
{$endif}
{$endif}
{$ifdef FORWARD}
NSTimeZone = objcclass;
NSTimeZonePointer = ^NSTimeZone;
NSTimeZonePtr = NSTimeZonePointer;
{$endif}
{$ifdef CLASSES}
{$ifndef NSTIMEZONE_PAS_C}
{$define NSTIMEZONE_PAS_C}
{ NSTimeZone }
NSTimeZone = objcclass external (NSObject, NSCopyingProtocol, NSCodingProtocol)
public
function name: NSString; message 'name';
function data: NSData; message 'data';
function secondsFromGMTForDate(aDate: NSDate): NSInteger; message 'secondsFromGMTForDate:';
function abbreviationForDate(aDate: NSDate): NSString; message 'abbreviationForDate:';
function isDaylightSavingTimeForDate(aDate: NSDate): Boolean; message 'isDaylightSavingTimeForDate:';
function daylightSavingTimeOffsetForDate(aDate: NSDate): NSTimeInterval; message 'daylightSavingTimeOffsetForDate:';
function nextDaylightSavingTimeTransitionAfterDate(aDate: NSDate): NSDate; message 'nextDaylightSavingTimeTransitionAfterDate:';
{ Adopted Protocols }
function copyWithZone(zone_: NSZonePtr): id;
procedure encodeWithCoder(aCoder: NSCoder);
function initWithCoder(aDecoder: NSCoder): id;
end;
{ NSExtendedTimeZoneCategory }
NSExtendedTimeZoneCategory = objccategory external (NSTimeZone)
class function systemTimeZone: NSTimeZone; message 'systemTimeZone';
class procedure resetSystemTimeZone; message 'resetSystemTimeZone';
class function defaultTimeZone: NSTimeZone; message 'defaultTimeZone';
class procedure setDefaultTimeZone(aTimeZone: NSTimeZone); message 'setDefaultTimeZone:';
class function localTimeZone: NSTimeZone; message 'localTimeZone';
class function knownTimeZoneNames: NSArray; message 'knownTimeZoneNames';
class function abbreviationDictionary: NSDictionary; message 'abbreviationDictionary';
class procedure setAbbreviationDictionary(dict: NSDictionary); message 'setAbbreviationDictionary:';
class function timeZoneDataVersion: NSString; message 'timeZoneDataVersion';
function secondsFromGMT: NSInteger; message 'secondsFromGMT';
function abbreviation: NSString; message 'abbreviation';
function isDaylightSavingTime: Boolean; message 'isDaylightSavingTime';
function daylightSavingTimeOffset: NSTimeInterval; message 'daylightSavingTimeOffset';
function nextDaylightSavingTimeTransition: NSDate; message 'nextDaylightSavingTimeTransition';
function description: NSString; message 'description';
function isEqualToTimeZone(aTimeZone: NSTimeZone): Boolean; message 'isEqualToTimeZone:';
function localizedName_locale(style: NSTimeZoneNameStyle; locale: NSLocale): NSString; message 'localizedName:locale:';
end;
{ NSTimeZoneCreationCategory }
NSTimeZoneCreationCategory = objccategory external (NSTimeZone)
class function timeZoneWithName(tzName: NSString): id; message 'timeZoneWithName:';
class function timeZoneWithName_data(tzName: NSString; aData: NSData): id; message 'timeZoneWithName:data:';
function initWithName(tzName: NSString): id; message 'initWithName:';
function initWithName_data(tzName: NSString; aData: NSData): id; message 'initWithName:data:';
class function timeZoneForSecondsFromGMT(seconds: NSInteger): id; message 'timeZoneForSecondsFromGMT:';
class function timeZoneWithAbbreviation(abbreviation_: NSString): id; message 'timeZoneWithAbbreviation:';
end;
{$endif}
{$endif}
|