Period.MultipliedBy(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a new instance with each element in this period multiplied by the specified scalar.
[Android.Runtime.Register("multipliedBy", "(I)Ljava/time/Period;", "", ApiSince=26)]
public Java.Time.Chrono.IChronoPeriod? MultipliedBy(int scalar);
[<Android.Runtime.Register("multipliedBy", "(I)Ljava/time/Period;", "", ApiSince=26)>]
abstract member MultipliedBy : int -> Java.Time.Chrono.IChronoPeriod
override this.MultipliedBy : int -> Java.Time.Chrono.IChronoPeriod
Parameters
- scalar
- Int32
the scalar to multiply by
Returns
a Period based on this period with the amounts multiplied by the scalar, not null
Implements
- Attributes
Remarks
Returns a new instance with each element in this period multiplied by the specified scalar. This returns a period with each of the years, months and days units 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 reference for java.time.Period.multipliedBy.