Compartir a través de


ZoneOffset.OfHoursMinutesSeconds(Int32, Int32, Int32) Method

Definition

Obtains an instance of ZoneOffset using an offset in hours, minutes and seconds.

[Android.Runtime.Register("ofHoursMinutesSeconds", "(III)Ljava/time/ZoneOffset;", "", ApiSince=26)]
public static Java.Time.ZoneOffset? OfHoursMinutesSeconds (int hours, int minutes, int seconds);
[<Android.Runtime.Register("ofHoursMinutesSeconds", "(III)Ljava/time/ZoneOffset;", "", ApiSince=26)>]
static member OfHoursMinutesSeconds : int * int * int -> Java.Time.ZoneOffset

Parameters

hours
Int32

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

minutes
Int32

the time-zone offset in minutes, from 0 to &plusmn;59, sign matches hours and seconds

seconds
Int32

the time-zone offset in seconds, from 0 to &plusmn;59, sign matches hours and minutes

Returns

the zone-offset, not null

Attributes

Remarks

Obtains an instance of ZoneOffset using an offset in hours, minutes and seconds.

The sign of the hours, minutes and seconds components must match. Thus, if the hours is negative, the minutes and seconds must be negative or zero.

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