共用方式為


Duration.ToMinutes Method

Definition

Gets the number of minutes in this duration.

[Android.Runtime.Register("toMinutes", "()J", "", ApiSince=26)]
public long ToMinutes ();
[<Android.Runtime.Register("toMinutes", "()J", "", ApiSince=26)>]
member this.ToMinutes : unit -> int64

Returns

the number of minutes in the duration, may be negative

Attributes

Remarks

Gets the number of minutes in this duration.

This returns the total number of minutes in the duration by dividing the number of seconds by 60.

This instance is immutable and unaffected by this method call.

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

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