ParseHms


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

Syntax

nHour, nMin, nSec = ParseHms( sHms )

bullet.gif    sHms is a time string, in decimal hours (e.g., "05:15:36.000").

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

Remarks

If the time string begins with a negative sign, then the nHour component is returned as negative.

Related Topics

HrToHms, HmsToHr, ParseHours


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.