| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |