Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

TimeCurrent

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the current system time/date in time/date variable format. Please be aware that Plant SCADA stores time as the number of seconds since 01/01/1970. You can convert this value into usable date and time variables by using the various Date and Time functions.

Note: Time/Date functions can only be used with dates between 1980 and 2035. You should check that the date you are using is valid with Cicode similar to the following:
IF StrToDate(Arg1)>0 THEN
...
ELSE
...
END

Syntax

TimeCurrent()

Return Value

A time/date variable.

StrToDate, StrToTime

Example

! If the current system time is 11:43:10 a.m.;

TimeVariable=TimeToStr(TimeCurrent(),0);

! Sets TimeVariable to "11:43".

See Also

Time and Date Functions

In This Topic
TitleResults for “How to create a CRG?”Also Available in