Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1046)

Side by Side Diff: source/i18n/unicode/timezone.h

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/i18n/unicode/tblcoll.h ('k') | source/i18n/unicode/tzfmt.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /************************************************************************* 1 /*************************************************************************
2 * Copyright (c) 1997-2015, 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
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 * <p> 59 * <p>
60 * You can also get a <code>TimeZone</code> using <code>createTimeZone</code> al ong 60 * You can also get a <code>TimeZone</code> using <code>createTimeZone</code> al ong
61 * with a time zone ID. For instance, the time zone ID for the US Pacific 61 * with a time zone ID. For instance, the time zone ID for the US Pacific
62 * Time zone is "America/Los_Angeles". So, you can get a Pacific Time <code>Time Zone</code> object 62 * Time zone is "America/Los_Angeles". So, you can get a Pacific Time <code>Time Zone</code> object
63 * with: 63 * with:
64 * \htmlonly<blockquote>\endhtmlonly 64 * \htmlonly<blockquote>\endhtmlonly
65 * <pre> 65 * <pre>
66 * TimeZone *tz = TimeZone::createTimeZone("America/Los_Angeles"); 66 * TimeZone *tz = TimeZone::createTimeZone("America/Los_Angeles");
67 * </pre> 67 * </pre>
68 * \htmlonly</blockquote>\endhtmlonly 68 * \htmlonly</blockquote>\endhtmlonly
69 * You can use <code>getAvailableIDs</code> method to iterate through 69 * You can use the <code>createEnumeration</code> method to iterate through
70 * all the supported time zone IDs, or getCanonicalID method to check 70 * all the supported time zone IDs, or the <code>getCanonicalID</code> method to check
71 * if a time zone ID is supported or not. You can then choose a 71 * if a time zone ID is supported or not. You can then choose a
72 * supported ID to get a <code>TimeZone</code>. 72 * supported ID to get a <code>TimeZone</code>.
73 * If the time zone you want is not represented by one of the 73 * If the time zone you want is not represented by one of the
74 * supported IDs, then you can create a custom time zone ID with 74 * supported IDs, then you can create a custom time zone ID with
75 * the following syntax: 75 * the following syntax:
76 * 76 *
77 * \htmlonly<blockquote>\endhtmlonly 77 * \htmlonly<blockquote>\endhtmlonly
78 * <pre> 78 * <pre>
79 * GMT[+|-]hh[[:]mm] 79 * GMT[+|-]hh[[:]mm]
80 * </pre> 80 * </pre>
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 * TimeZone::setDefault(const TimeZone&) is explicitly called by a 281 * TimeZone::setDefault(const TimeZone&) is explicitly called by a
282 * user. This method does not update the current ICU's default, 282 * user. This method does not update the current ICU's default,
283 * and may return a different TimeZone from the one returned by 283 * and may return a different TimeZone from the one returned by
284 * TimeZone::createDefault(). 284 * TimeZone::createDefault().
285 * 285 *
286 * @return A new instance of TimeZone detected from the current host system 286 * @return A new instance of TimeZone detected from the current host system
287 * configuration. 287 * configuration.
288 * @draft ICU 55 288 * @draft ICU 55
289 */ 289 */
290 static TimeZone* U_EXPORT2 detectHostTimeZone(); 290 static TimeZone* U_EXPORT2 detectHostTimeZone();
291 #endif 291 #endif /* U_HIDE_DRAFT_API */
292 292
293 /** 293 /**
294 * 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
295 * 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
296 * determined by querying the system using methods in TPlatformUtilities. If the 296 * determined by querying the system using methods in TPlatformUtilities. If the
297 * 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
298 * recognized, the TimeZone indicated by the ID kLastResortID is instantiate d 298 * recognized, the TimeZone indicated by the ID kLastResortID is instantiate d
299 * and made the default. 299 * and made the default.
300 * 300 *
301 * @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
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 TimeZone::setID(const UnicodeString& ID) 956 TimeZone::setID(const UnicodeString& ID)
957 { 957 {
958 fID = ID; 958 fID = ID;
959 } 959 }
960 U_NAMESPACE_END 960 U_NAMESPACE_END
961 961
962 #endif /* #if !UCONFIG_NO_FORMATTING */ 962 #endif /* #if !UCONFIG_NO_FORMATTING */
963 963
964 #endif //_TIMEZONE 964 #endif //_TIMEZONE
965 //eof 965 //eof
OLDNEW
« no previous file with comments | « source/i18n/unicode/tblcoll.h ('k') | source/i18n/unicode/tzfmt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698