Share via


Duration.ToDays Method

Definition

Gets the number of days in this duration.

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

Returns

the number of days in the duration, may be negative

Attributes

Remarks

Gets the number of days in this 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.

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

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