ZoneOffset.OfHours(Int32) Method

Definition

Obtains an instance of ZoneOffset using an offset in hours.

[Android.Runtime.Register("ofHours", "(I)Ljava/time/ZoneOffset;", "", ApiSince=26)]
public static Java.Time.ZoneOffset? OfHours (int hours);
[<Android.Runtime.Register("ofHours", "(I)Ljava/time/ZoneOffset;", "", ApiSince=26)>]
static member OfHours : int -> Java.Time.ZoneOffset

Parameters

hours
Int32

the time-zone offset in hours, from -18 to +18

Returns

the zone-offset, not null

Attributes

Remarks

Obtains an instance of ZoneOffset using an offset in hours.

Java documentation for java.time.ZoneOffset.ofHours(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