AlarmManager.SetTimeZone(String) Method

Definition

Sets the system's persistent default time zone.

[Android.Runtime.Register("setTimeZone", "(Ljava/lang/String;)V", "GetSetTimeZone_Ljava_lang_String_Handler")]
[Android.Runtime.RequiresPermission("android.permission.SET_TIME_ZONE")]
public virtual void SetTimeZone (string? timeZone);
[<Android.Runtime.Register("setTimeZone", "(Ljava/lang/String;)V", "GetSetTimeZone_Ljava_lang_String_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.SET_TIME_ZONE")>]
abstract member SetTimeZone : string -> unit
override this.SetTimeZone : string -> unit

Parameters

timeZone
String

one of the Olson ids from the list returned by java.util.TimeZone#getAvailableIDs

Attributes

Remarks

Java documentation for android.app.AlarmManager.setTimeZone(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