Duration.ToDaysPart Method

Definition

Extracts the number of days in the duration.

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

Returns

the number of days in the duration, may be negative

Attributes

Remarks

Extracts the number of days in the duration.

This returns the total number of days in the duration by dividing the number of seconds by 86400. This is based on the standard definition of a day as 24 hours.

This instance is immutable and unaffected by this method call.

Added in 9.

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

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