Duration.ToHoursPart 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.
Extracts the number of hours part in the duration.
[Android.Runtime.Register("toHoursPart", "()I", "", ApiSince=31)]
public int ToHoursPart ();
[<Android.Runtime.Register("toHoursPart", "()I", "", ApiSince=31)>]
member this.ToHoursPart : unit -> int
Returns
the number of hours part in the duration, may be negative
- Attributes
Remarks
Extracts the number of hours part in the duration.
This returns the number of remaining hours when dividing #toHours
by hours in a day. 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.toHoursPart()
.
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.