TODSTR

Purpose:

Returns the number of seconds from a time string.

Syntax:

TODSTR("timestr")

"timestr"

-

A string. The time in hh:mm:ss format.

Returns:

An integer, the total number of seconds represented by the time string.

Example:

todstr("12:00:00")

 

returns 43200.

Remarks:

A value of 0 seconds represents midnight. Since the total number of seconds in a day is 86400, todstr("12:00:00") is 43200 or noon.

 

Use TODMSECSTR to handle milliseconds.

 

Use STRTOD to convert seconds into a time string.

See Also:

STRJUL

STRTOD

STRTODMSEC

TODMSECSTR