STRTODMSEC

Purpose:

Returns a time string with milliseconds from a real number of seconds.

Syntax:

STRTODMSEC(seconds, precision)

seconds

-

A real. The number of seconds from which to calculate the time. The fractional part represents milliseconds.

precision

-

Optional An integer. The number of digits to display after the decimal point in the time string. Defaults to 3.

Returns:

A string in hh:mm:ss.iii format.

Example:

strtodmsec(43200.101)

 

returns 12:00:00.101.

Example:

strtodmsec(43200.101, 5)

 

returns 12:00:00.10100.

Remarks:

A value of 0.0 seconds represents midnight. Since the total number of seconds in a day is 86400, strtodmsec(43200.000) is noon.

 

See STRTOD to create a time string without milliseconds.

 

See TODMSECSTR to convert a time string with milliseconds into seconds.

 

See HMS2TIME to convert, hours, minutes and seconds to a time value.

 

See TOCLABEL to label a window with the elapsed time since TIC.

See Also:

HMS2TIME

STRJUL

STRTOD

TOCLABEL

TODMSECSTR

TODSTR

TIME2HMS