]> git.saurik.com Git - apple/cf.git/blame - CFTimeZone.h
CF-1151.16.tar.gz
[apple/cf.git] / CFTimeZone.h
CommitLineData
9ce05555 1/*
d8b101a4 2 * Copyright (c) 2014 Apple Inc. All rights reserved.
9ce05555
A
3 *
4 * @APPLE_LICENSE_HEADER_START@
d7384798 5 *
9ce05555
A
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
d7384798 12 *
9ce05555
A
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
d7384798 20 *
9ce05555
A
21 * @APPLE_LICENSE_HEADER_END@
22 */
f64f9b69 23
9ce05555 24/* CFTimeZone.h
d7384798 25 Copyright (c) 1998-2014, Apple Inc. All rights reserved.
9ce05555
A
26*/
27
28#if !defined(__COREFOUNDATION_CFTIMEZONE__)
29#define __COREFOUNDATION_CFTIMEZONE__ 1
30
31#include <CoreFoundation/CFBase.h>
32#include <CoreFoundation/CFArray.h>
33#include <CoreFoundation/CFData.h>
34#include <CoreFoundation/CFDate.h>
35#include <CoreFoundation/CFDictionary.h>
36#include <CoreFoundation/CFString.h>
37
856091c5 38CF_IMPLICIT_BRIDGING_ENABLED
bd5b749c 39CF_EXTERN_C_BEGIN
9ce05555
A
40
41CF_EXPORT
42CFTypeID CFTimeZoneGetTypeID(void);
43
44CF_EXPORT
45CFTimeZoneRef CFTimeZoneCopySystem(void);
46
47CF_EXPORT
48void CFTimeZoneResetSystem(void);
49
50CF_EXPORT
51CFTimeZoneRef CFTimeZoneCopyDefault(void);
52
53CF_EXPORT
54void CFTimeZoneSetDefault(CFTimeZoneRef tz);
55
56CF_EXPORT
57CFArrayRef CFTimeZoneCopyKnownNames(void);
58
59CF_EXPORT
60CFDictionaryRef CFTimeZoneCopyAbbreviationDictionary(void);
61
62CF_EXPORT
63void CFTimeZoneSetAbbreviationDictionary(CFDictionaryRef dict);
64
65CF_EXPORT
66CFTimeZoneRef CFTimeZoneCreate(CFAllocatorRef allocator, CFStringRef name, CFDataRef data);
67
68CF_EXPORT
69CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT(CFAllocatorRef allocator, CFTimeInterval ti);
70
71CF_EXPORT
72CFTimeZoneRef CFTimeZoneCreateWithName(CFAllocatorRef allocator, CFStringRef name, Boolean tryAbbrev);
73
74CF_EXPORT
75CFStringRef CFTimeZoneGetName(CFTimeZoneRef tz);
76
77CF_EXPORT
78CFDataRef CFTimeZoneGetData(CFTimeZoneRef tz);
79
80CF_EXPORT
81CFTimeInterval CFTimeZoneGetSecondsFromGMT(CFTimeZoneRef tz, CFAbsoluteTime at);
82
83CF_EXPORT
84CFStringRef CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz, CFAbsoluteTime at);
85
86CF_EXPORT
87Boolean CFTimeZoneIsDaylightSavingTime(CFTimeZoneRef tz, CFAbsoluteTime at);
88
bd5b749c 89CF_EXPORT
8ca704e1 90CFTimeInterval CFTimeZoneGetDaylightSavingTimeOffset(CFTimeZoneRef tz, CFAbsoluteTime at) CF_AVAILABLE(10_5, 2_0);
bd5b749c
A
91
92CF_EXPORT
8ca704e1 93CFAbsoluteTime CFTimeZoneGetNextDaylightSavingTimeTransition(CFTimeZoneRef tz, CFAbsoluteTime at) CF_AVAILABLE(10_5, 2_0);
bd5b749c 94
856091c5 95typedef CF_ENUM(CFIndex, CFTimeZoneNameStyle) {
bd5b749c
A
96 kCFTimeZoneNameStyleStandard,
97 kCFTimeZoneNameStyleShortStandard,
98 kCFTimeZoneNameStyleDaylightSaving,
cf7d2af9
A
99 kCFTimeZoneNameStyleShortDaylightSaving,
100 kCFTimeZoneNameStyleGeneric,
101 kCFTimeZoneNameStyleShortGeneric
856091c5 102} CF_ENUM_AVAILABLE(10_5, 2_0);
bd5b749c
A
103
104CF_EXPORT
8ca704e1 105CFStringRef CFTimeZoneCopyLocalizedName(CFTimeZoneRef tz, CFTimeZoneNameStyle style, CFLocaleRef locale) CF_AVAILABLE(10_5, 2_0);
9ce05555 106
bd5b749c 107CF_EXPORT
8ca704e1 108const CFStringRef kCFTimeZoneSystemTimeZoneDidChangeNotification CF_AVAILABLE(10_5, 2_0);
bd5b749c
A
109
110CF_EXTERN_C_END
856091c5 111CF_IMPLICIT_BRIDGING_DISABLED
bd5b749c 112
9ce05555
A
113#endif /* ! __COREFOUNDATION_CFTIMEZONE__ */
114