Hours

Namespace ›› System ›› MfTimeSpan ›› Properties ››
Parent Previous Next

Hours

Gets the hours component of the time interval represented by the current MfTimeSpan object as MfInteger object.

OutputVar := instance.Hours

Value

Instance of MfInteger


Gets

The hour component of the current MfTimeSpan class as a read-only instance of MfInteger object with value ranges from -23 through 23.

Remarks

Read-only property.
A MfTimeSpan value can be represented as [-]d.hh:mm:ss.ff, where the optional minus sign indicates a negative time interval, the d component is days, hh is hours as measured on a 24-hour clock, mm is minutes, ss is seconds, and ff is fractions of a second. The value of the Hours property is the hours component, hh.
Hours represents whole hours, whereas the TotalHours property represents whole and fractional hours.
Hours is a read-only instance of MfInteger with ReturnAsObject set to true.