Java.Util.TimeZone Class
TimeZone represents a time zone, primarily used for configuring a Java.Util.Calendar or Java.Text.SimpleDateFormat instance.

See Also: TimeZone Members

Syntax

[Android.Runtime.Register("java/util/TimeZone", DoNotGenerateAcw=true)]
public abstract class TimeZone : Java.Lang.Object, Java.IO.ISerializable, Java.Lang.ICloneable, IDisposable

Remarks

TimeZone represents a time zone, primarily used for configuring a Java.Util.Calendar or Java.Text.SimpleDateFormat instance.

Most applications will use TimeZone.Default which returns a TimeZone based on the time zone where the program is running.

You can also get a specific TimeZoneTimeZone.GetTimeZone(string).

It is highly unlikely you'll ever want to use anything but the factory methods yourself. Let classes like Java.Util.Calendar and Java.Text.SimpleDateFormat do the date computations for you.

If you do need to do date computations manually, there are two common cases to take into account:

Note the type returned by the factory methods TimeZone.Default and TimeZone.GetTimeZone(string) is implementation dependent. This may introduce serialization incompatibility issues between different implementations, or different versions of Android.

See Also

[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