TOHMS

Concept Link IconSee also

Convert a value in seconds to a string in time format.

WebVue support - Yes.

Syntax

StrVal = TOHMS(Seconds);

Return type: STR.

Argument

Meaning

Seconds

The number of seconds to be converted. Any numeric type.

Execution

The number of seconds is converted into a time string of the format HHMMSS.

Example

SUB Main()

DIM strString1 as STR;

DIM dblValue as DOUBLE;

dblValue = 6594;

strString1 = TOHMS (dblValue);

PRINT("6594 seconds = ",strString1);

'Display "6594 seconds = 01:49:54"

END SUB