IChronoPeriod.MultipliedBy(Int32) Method

Definition

Returns a new instance with each amount in this period in this period multiplied by the specified scalar.

[Android.Runtime.Register("multipliedBy", "(I)Ljava/time/chrono/ChronoPeriod;", "GetMultipliedBy_IHandler:Java.Time.Chrono.IChronoPeriodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Time.Chrono.IChronoPeriod? MultipliedBy (int scalar);
[<Android.Runtime.Register("multipliedBy", "(I)Ljava/time/chrono/ChronoPeriod;", "GetMultipliedBy_IHandler:Java.Time.Chrono.IChronoPeriodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member MultipliedBy : int -> Java.Time.Chrono.IChronoPeriod

Parameters

scalar
Int32

the scalar to multiply by, not null

Returns

a ChronoPeriod based on this period with the amounts multiplied by the scalar, not null

Attributes

Remarks

Returns a new instance with each amount in this period in this period multiplied by the specified scalar.

This returns a period with each supported unit individually multiplied. For example, a period of "2 years, -3 months and 4 days" multiplied by 3 will return "6 years, -9 months and 12 days". No normalization is performed.

Java documentation for java.time.chrono.ChronoPeriod.multipliedBy(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