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.

 

Use STRTOD to create a time string without milliseconds.

 

Use TODMSECSTR to convert a time tring with milliseconds into seconds.

See Also:

STRJUL

STRTOD

TODMSECSTR

TODSTR