Java.Util.TimeZone.GetTimeZone Method
Returns a TimeZone corresponding to the given id, or GMT for unknown ids.

Syntax

[Android.Runtime.Register("getTimeZone", "(Ljava/lang/String;)Ljava/util/TimeZone;", "")]
public static TimeZone GetTimeZone (string name)

Parameters

id
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns a TimeZone corresponding to the given id, or GMT for unknown ids.

An ID can be an Olson name of the form Area/Location, such as America/Los_Angeles. The TimeZone.GetAvailableIDs method returns the supported names.

This method can also create a custom TimeZone given an ID with the following syntax: GMT[+|-]hh[[:]mm]. For example, "GMT+05:00", "GMT+0500", "GMT+5:00", "GMT+500", "GMT+05", and "GMT+5" all return an object with a raw offset of +5 hours from UTC, and which does not use daylight savings. These are rarely useful, because they don't correspond to time zones actually in use by humans.

Other than the special cases "UTC" and "GMT" (which are synonymous in this context, both corresponding to UTC), Android does not support the deprecated three-letter time zone IDs used in Java 1.1.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1