Share via


Duration.ToSecondsPart Method

Definition

Extracts the number of seconds part in the duration.

[Android.Runtime.Register("toSecondsPart", "()I", "", ApiSince=31)]
public int ToSecondsPart ();
[<Android.Runtime.Register("toSecondsPart", "()I", "", ApiSince=31)>]
member this.ToSecondsPart : unit -> int

Returns

the number of seconds parts in the duration, may be negative

Attributes

Remarks

Extracts the number of seconds part in the duration.

This returns the remaining seconds when dividing #toSeconds by seconds in a minute. This is based on the standard definition of a minute as 60 seconds.

This instance is immutable and unaffected by this method call.

Added in 9.

Java documentation for java.time.Duration.toSecondsPart().

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