FUNCTIONS CORE

TString()

Convert numeric seconds into a time formatted character string

Syntax

Signature
TString( nSeconds ) --> cTimeString

Arguments

nSeconds

Example

TString.prg
PROCEDURE Main()

   Check( 'TString( 3661 )  ', TString( 3661 ), "01:01:01" )
   Check( 'TString( 90061 ) ', TString( 90061 ), "01:01:01" )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

   QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )

RETURN

Output

TString( 3661 )  OK
TString( 90061 ) OK