HrToHms


The HrToHms function converts a time value, in decimal hours, to a properly formatted string containing hours, minutes, and seconds.

Syntax

sHms = HrToHms( nHours )

where

    nHours is the decimal hours (e.g., 6.424468).

    sHms is a string containing hours, minutes, and seconds (e.g., "06:25:28.085").

  

This function converts a number to a time string. To do the reverse conversion, use HmsToHr.

Related Topics

HmsToHr