CDurationStr

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

CDurationStr


 

Converts a value to a duration format string.

 


syntax

CDurationStr(

         val,

         format

         [,type="SEC"]

         )

 


Parameters

 

val

 

Type:

Number

 

The value to convert. For example, if type is "SEC", val specifies the number of seconds.

 

format

 

Type:

character

 

Duration format. Strings other than the following formats are output as is.

%D days

%H Two-digit hour

%#H Time without a leading zero

%M Minute in two digits

%#M No leading zero

%S Seconds in two digits

%#S Number of seconds without leading zeros

$T ms in 4 digits

%#T ms without leading zeros

%%, %#%  One percent sign (%)

 

type

 

Type:

character

 

How to handle the unit of val. SEC / MIN / HOUR can be specified.

 

Return Value

 

 

Type:

character

 

The converted value.

 


hmtoggle_plus1Explanation

 

 


Supported


Script Action

Browser script

Calculation Expression Syntax

 

 


reference