Duration.OfDays(Int64) 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.
Obtains a Duration representing a number of standard 24 hour days.
[Android.Runtime.Register("ofDays", "(J)Ljava/time/Duration;", "", ApiSince=26)]
public static Java.Time.Duration? OfDays(long days);
[<Android.Runtime.Register("ofDays", "(J)Ljava/time/Duration;", "", ApiSince=26)>]
static member OfDays : int64 -> Java.Time.Duration
Parameters
- days
- Int64
the number of days, positive or negative
Returns
a Duration, not null
- Attributes
Remarks
Obtains a Duration representing a number of standard 24 hour days. The seconds are calculated based on the standard definition of a day, where each day is 86400 seconds which implies a 24 hour day. The nanosecond in second field is set to zero.
Java reference for java.time.Duration.ofDays.