ptSetTimeAxisToCurrent() function
- Last UpdatedJun 17, 2024
- 1 minute read
The ptSetTimeAxisToCurrent() function can be used in a script to calculate the current chart span and the chart's ending time.
Category
Pen trend
Syntax
ptSetTimeAxisToCurrent(TrendName);
Argument
TrendName
The name of the trend object. TrendName must be a string constant or a message tag.
Example
The ptSetTimeAxisToCurrent() function sets the ending date and time of the PumpPress trend to the current date and time.
ptSetTimeAxisToCurrent("PumpPress");