ptSetTimeAxis() function
- Last UpdatedJun 17, 2024
- 1 minute read
The ptSetTimeAxis() function can be used in a script to set the trend’s starting date and time and ending date and time.
Category
Pen trend
Syntax
ptSetTimeAxis(TrendName,StartDateTime,EndDateTime);
Arguments
TrendName
The name of the trend object. Must be either a string constant or message tag.
StartDateTime
The date and time when the trend begins. The format for the starting date and time is: dd/mm/yyyy hh:mm:ss AM/PM.
EndDateTime
The date and time when the trend ends. The format for the ending date and time is: dd/mm/yyyy hh:mm:ss AM/PM.
Example
The ptSetTimeAxis() function sets the starting and ending dates and times of a trend for a 25 hour period starting at 8:30 on May 22, 2007.
ptSetTimeAxis ("PumpPress", "05/22/2007 08:30:00 AM", "05/23/2007 09:30:00 AM");