GetRelativeTime

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

GetRelativeTime


 

Calculates the time relative to a certain time.

 


syntax

GetRelativeTime(

         baseTime,

         relativeTimeFormat

         )

 

 


Parameters

 

baseTime

 

Type:

time

 

The reference time.

 

relativeTimeFormat

 

Type:

Relative Time Format

 

Relative time format. For details, see "Time type format".

example)

"now-1y"

"day-1d"

"month-1d"

 

Return Value

 

 

Type:

time

 

The desired time.

 


hmtoggle_plus1Explanation

 

hmtoggle_plus1Example

 


Supported


Script Action

Browser script

Calculation Expression Syntax

 

 


reference