TrendDspCursorTime
Displays the cursor time of the current pen in the current pen font.
Syntax
TrendDspCursorTime(AN, Format)
AN:
The AN number of the trend.
Format:
Format of the string:
0 - Short time format, hh:mm AM/PM.
1 - Long time format, hh:mm:ss AM/PM.
2 - Short date format, dd/mm/yy.
3 - Long date format, day month year.
4 - Time and date, weekday month day year hh:mm:ss AM/PM.
5 - Long time period, hh:mm:ss. Time needs to be in seconds.
6 - Millisecond time period, hh:mm:ss:xxx ("xxx" represents milliseconds). Time needs to be in milliseconds.
7 - Short time period, hh:mm. Time needs to be in seconds.
8 - Long time period, days:hh:mm:sec. Time needs to be in seconds.
9 - Extended date format, dd/mm/yyyy.
Note: If Format is set to 1, 2, or 3, the mode will be ignored when the sampling period of the trend changes to less than 1 second. Instead, the time is displayed as hh:min:ss.xxx, that is, displayed as mode 6.
Return Value
0 (zero) if successful, otherwise an error is returned.
Related Functions
TrendDspCursorScale, TrendDspCursorComment, TrendDspCursorTag, TrendDspCursorValue, TrendGetAn, TrendRun, TrendSetDate, TrendSetScale, TrendSetSpan, TrendSetTime, TrendSetTimebase, TrendZoom
Example
See the built-in trend templates.
See Also