Cicode Programming Reference > Cicode Function Categories > Trend Functions Introduction > TrendDspCursorTime


Displays the cursor time of the current pen in the current pen font.


TrendDspCursorTime(AN, Format)


The AN number of the trend.


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, 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


See the built-in trend templates.

See Also

Trend Functions