FormatHmsStr


The FormatHmsStr function converts a time string in HMS form into a properly formatted time string. Use this function, for example, to convert "12, 14, 15.6" to "12:14:15.600"

Syntax

sHmsNew = FormatHmsStr( sHms )

where

    sHms is the string to be converted (e.g., "12, 14, 15.6").

    sHmsNew is the properly formatted time string (e.g., "12:14:15.600").

  

Use this function to clean input strings and convert them into the standard format. The standard format string can be sent to other Mira functions expecting a properly formatted time string.

Related Topics

HrToHms

HmsToHr

ParseHms

ParseHours

FormatTime