LocalTime.Of Method

Definition

Overloads

Name Description
Of(Int32, Int32, Int32, Int32)

Obtains an instance of LocalTime from an hour, minute, second and nanosecond.

Of(Int32, Int32, Int32)

Obtains an instance of LocalTime from an hour, minute and second.

Of(Int32, Int32)

Obtains an instance of LocalTime from an hour and minute.

Of(Int32, Int32, Int32, Int32)

Obtains an instance of LocalTime from an hour, minute, second and nanosecond.

[Android.Runtime.Register("of", "(IIII)Ljava/time/LocalTime;", "", ApiSince=26)]
public static Java.Time.LocalTime? Of(int hour, int minute, int second, int nanoOfSecond);
[<Android.Runtime.Register("of", "(IIII)Ljava/time/LocalTime;", "", ApiSince=26)>]
static member Of : int * int * int * int -> Java.Time.LocalTime

Parameters

hour
Int32

the hour-of-day to represent, from 0 to 23

minute
Int32

the minute-of-hour to represent, from 0 to 59

second
Int32

the second-of-minute to represent, from 0 to 59

nanoOfSecond
Int32

the nano-of-second to represent, from 0 to 999,999,999

Returns

the local time, not null

Attributes

Remarks

Obtains an instance of LocalTime from an hour, minute, second and nanosecond. This returns a LocalTime with the specified hour, minute, second and nanosecond.

Java reference for java.time.LocalTime.of.

Applies to

Of(Int32, Int32, Int32)

Obtains an instance of LocalTime from an hour, minute and second.

[Android.Runtime.Register("of", "(III)Ljava/time/LocalTime;", "", ApiSince=26)]
public static Java.Time.LocalTime? Of(int hour, int minute, int second);
[<Android.Runtime.Register("of", "(III)Ljava/time/LocalTime;", "", ApiSince=26)>]
static member Of : int * int * int -> Java.Time.LocalTime

Parameters

hour
Int32

the hour-of-day to represent, from 0 to 23

minute
Int32

the minute-of-hour to represent, from 0 to 59

second
Int32

the second-of-minute to represent, from 0 to 59

Returns

the local time, not null

Attributes

Remarks

To be added.

Java reference for java.time.LocalTime.of.

Applies to

Of(Int32, Int32)

Obtains an instance of LocalTime from an hour and minute.

[Android.Runtime.Register("of", "(II)Ljava/time/LocalTime;", "", ApiSince=26)]
public static Java.Time.LocalTime? Of(int hour, int minute);
[<Android.Runtime.Register("of", "(II)Ljava/time/LocalTime;", "", ApiSince=26)>]
static member Of : int * int -> Java.Time.LocalTime

Parameters

hour
Int32

the hour-of-day to represent, from 0 to 23

minute
Int32

the minute-of-hour to represent, from 0 to 59

Returns

the local time, not null

Attributes

Remarks

Obtains an instance of LocalTime from an hour and minute. This returns a LocalTime with the specified hour and minute. The second and nanosecond fields will be set to zero.

Java reference for java.time.LocalTime.of.

Applies to