OLD | NEW |
1 /************************************************************************* | 1 /************************************************************************* |
2 * Copyright (c) 1997-2014, International Business Machines Corporation | 2 * Copyright (c) 1997-2015, International Business Machines Corporation |
3 * and others. All Rights Reserved. | 3 * and others. All Rights Reserved. |
4 ************************************************************************** | 4 ************************************************************************** |
5 * | 5 * |
6 * File TIMEZONE.H | 6 * File TIMEZONE.H |
7 * | 7 * |
8 * Modification History: | 8 * Modification History: |
9 * | 9 * |
10 * Date Name Description | 10 * Date Name Description |
11 * 04/21/97 aliu Overhauled header. | 11 * 04/21/97 aliu Overhauled header. |
12 * 07/09/97 helena Changed createInstance to createDefault. | 12 * 07/09/97 helena Changed createInstance to createDefault. |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 * returned by <code>countEquivalentIDs(id)</code> | 266 * returned by <code>countEquivalentIDs(id)</code> |
267 * @return the ID of the index-th zone in the equivalency group | 267 * @return the ID of the index-th zone in the equivalency group |
268 * containing 'id', or an empty string if 'id' is not a valid | 268 * containing 'id', or an empty string if 'id' is not a valid |
269 * system ID or 'index' is out of range | 269 * system ID or 'index' is out of range |
270 * @see #countEquivalentIDs | 270 * @see #countEquivalentIDs |
271 * @stable ICU 2.0 | 271 * @stable ICU 2.0 |
272 */ | 272 */ |
273 static const UnicodeString U_EXPORT2 getEquivalentID(const UnicodeString& id
, | 273 static const UnicodeString U_EXPORT2 getEquivalentID(const UnicodeString& id
, |
274 int32_t index); | 274 int32_t index); |
275 | 275 |
| 276 #ifndef U_HIDE_DRAFT_API |
| 277 /** |
| 278 * Creates an instance of TimeZone detected from the current host |
| 279 * system configuration. Note that ICU4C does not change the default |
| 280 * time zone unless TimeZone::adoptDefault(TimeZone*) or |
| 281 * TimeZone::setDefault(const TimeZone&) is explicitly called by a |
| 282 * user. This method does not update the current ICU's default, |
| 283 * and may return a different TimeZone from the one returned by |
| 284 * TimeZone::createDefault(). |
| 285 * |
| 286 * @return A new instance of TimeZone detected from the current host system |
| 287 * configuration. |
| 288 * @draft ICU 55 |
| 289 */ |
| 290 static TimeZone* U_EXPORT2 detectHostTimeZone(); |
| 291 #endif |
| 292 |
276 /** | 293 /** |
277 * Creates a new copy of the default TimeZone for this host. Unless the defa
ult time | 294 * Creates a new copy of the default TimeZone for this host. Unless the defa
ult time |
278 * zone has already been set using adoptDefault() or setDefault(), the defau
lt is | 295 * zone has already been set using adoptDefault() or setDefault(), the defau
lt is |
279 * determined by querying the system using methods in TPlatformUtilities. If
the | 296 * determined by querying the system using methods in TPlatformUtilities. If
the |
280 * system routines fail, or if they specify a TimeZone or TimeZone offset wh
ich is not | 297 * system routines fail, or if they specify a TimeZone or TimeZone offset wh
ich is not |
281 * recognized, the TimeZone indicated by the ID kLastResortID is instantiate
d | 298 * recognized, the TimeZone indicated by the ID kLastResortID is instantiate
d |
282 * and made the default. | 299 * and made the default. |
283 * | 300 * |
284 * @return A default TimeZone. Clients are responsible for deleting the ti
me zone | 301 * @return A default TimeZone. Clients are responsible for deleting the ti
me zone |
285 * object returned. | 302 * object returned. |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 TimeZone::setID(const UnicodeString& ID) | 956 TimeZone::setID(const UnicodeString& ID) |
940 { | 957 { |
941 fID = ID; | 958 fID = ID; |
942 } | 959 } |
943 U_NAMESPACE_END | 960 U_NAMESPACE_END |
944 | 961 |
945 #endif /* #if !UCONFIG_NO_FORMATTING */ | 962 #endif /* #if !UCONFIG_NO_FORMATTING */ |
946 | 963 |
947 #endif //_TIMEZONE | 964 #endif //_TIMEZONE |
948 //eof | 965 //eof |
OLD | NEW |