Share via


XMLGregorianCalendar.GetTimeZone(Int32) Method

Definition

Returns a java.util.TimeZone for this class.

[Android.Runtime.Register("getTimeZone", "(I)Ljava/util/TimeZone;", "GetGetTimeZone_IHandler")]
public abstract Java.Util.TimeZone? GetTimeZone (int defaultZoneoffset);
[<Android.Runtime.Register("getTimeZone", "(I)Ljava/util/TimeZone;", "GetGetTimeZone_IHandler")>]
abstract member GetTimeZone : int -> Java.Util.TimeZone

Parameters

defaultZoneoffset
Int32

default zoneoffset if this zoneoffset is DatatypeConstants#FIELD_UNDEFINED.

Returns

TimeZone for this.

Attributes

Remarks

Returns a java.util.TimeZone for this class.

If timezone field is defined for this instance, returns TimeZone initialized with custom timezone id of zoneoffset. If timezone field is undefined, try the defaultZoneoffset that was passed in. If defaultZoneoffset is FIELD_UNDEFINED, return default timezone for this host. (Same default as java.util.GregorianCalendar).

Java documentation for javax.xml.datatype.XMLGregorianCalendar.getTimeZone(int).

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