ParseHours


The ParseHours function splits a decimal number of hours into its components of hours, minutes, and seconds. To split a time string in HMS form, use ParseHms

Syntax

nHour, nMin, nSec = ParseHours( nHours )

where

    nHours is a decimal hour value (e.g., 5.25016667).

    nHour, nMin, nSec are the components of the HMS string (e.g., 5, 15, and 36).

  

If the decimal number of hours is negative, then the Hour component is returned as negative.

Related Topics

HrToHms

HmsToHr

ParseHms

FormatHmsStr