Language

OffsetTime.WithMinute(Int32) Method

Definition

Returns a copy of this OffsetTime with the minute-of-hour altered.

[Android.Runtime.Register("withMinute", "(I)Ljava/time/OffsetTime;", "", ApiSince=26)]
public Java.Time.OffsetTime? WithMinute(int minute);
[<Android.Runtime.Register("withMinute", "(I)Ljava/time/OffsetTime;", "", ApiSince=26)>]
member this.WithMinute : int -> Java.Time.OffsetTime

Parameters

minute
Int32

the minute-of-hour to set in the result, from 0 to 59

Returns

an OffsetTime based on this time with the requested minute, not null

Attributes

Remarks

Returns a copy of this OffsetTime with the minute-of-hour altered. The offset does not affect the calculation and will be the same in the result. This instance is immutable and unaffected by this method call.

Java reference for java.time.OffsetTime.withMinute.

Applies to