Period.WithDays(Int32) Method

Definition

Returns a copy of this period with the specified amount of days.

[Android.Runtime.Register("withDays", "(I)Ljava/time/Period;", "", ApiSince=26)]
public Java.Time.Period? WithDays(int days);
[<Android.Runtime.Register("withDays", "(I)Ljava/time/Period;", "", ApiSince=26)>]
member this.WithDays : int -> Java.Time.Period

Parameters

days
Int32

the days to represent, may be negative

Returns

a Period based on this period with the requested days, not null

Attributes

Remarks

Returns a copy of this period with the specified amount of days. This sets the amount of the days unit in a copy of this period. The years and months units are unaffected. This instance is immutable and unaffected by this method call.

Java reference for java.time.Period.withDays.

Applies to