SetTimeRange

<< Click to Display Table of Contents >>

Manual > Control Reference > Data > Histrical data graph control > Method >

SetTimeRange


 

Specify the start and end dates and times for the time axis (X-axis).

 


Syntax 1

SetTimeRange(

         startTime,

         endTime

         )

 


Parameters

 

startTime


Type:

time


Start date and time.

 

endTime


Type:

time


End date and time.

 

 


Syntax 2

SetTimeRange(

         baseTime,

         day,

         hour,

         min,

         sec

         [,baseTimePos = "left"]

         )

 

(This is for setting the start time and end time using a base time and period.)

 


Parameters

 

baseTime


Type:

time


The reference date and time.

 

day


Type:

Number


Number of days

 

hour


Type:

Number


time

 

min


Type:

Number


Minutes

 

sec


Type:

Number


Seconds

 

baseTimePos


Type:

Selected characters


Position of the reference date and time. Select from "left",, "center",, and "right".

If you select "left", the end time is set on the left side, that is, based on the start time.

"center" is the center, meaning that the start time and end time are set so that the reference time is exactly in the center.

If you select "right", the start time is determined based on the right side, that is, the end time.

 


hmtoggle_plus1Explanation

 

hmtoggle_plus1Example

 

 


reference