Time.SwitchTimezone(String) Method

Definition

Convert this time object so the time represented remains the same, but is instead located in a different timezone.

[Android.Runtime.Register("switchTimezone", "(Ljava/lang/String;)V", "GetSwitchTimezone_Ljava_lang_String_Handler")]
public virtual void SwitchTimezone (string? timezone);
[<Android.Runtime.Register("switchTimezone", "(Ljava/lang/String;)V", "GetSwitchTimezone_Ljava_lang_String_Handler")>]
abstract member SwitchTimezone : string -> unit
override this.SwitchTimezone : string -> unit

Parameters

timezone
String
Attributes

Remarks

Convert this time object so the time represented remains the same, but is instead located in a different timezone. This method automatically calls normalize() in some cases.

This method can return incorrect results if the date / time cannot be normalized.

Java documentation for android.text.format.Time.switchTimezone(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to