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

AVEVA™ Plant SCADA

Time and Date Functions

  • Last UpdatedJul 18, 2023
  • 1 minute read

Time/date functions manipulate time and date variables. Plant SCADA stores time/date-related variables as a single integer. This integer represents the number of seconds since 01/01/1970. It is in GMT, but it has an offset that updates it to local time (determined by the timezone the application is in). The Time/date functions convert this integer into time and date variables.

Note: The Time/date functions can only be used with dates between 1980 and 2035.

Following are functions relating to Time and Date:

Date

Gets the current system date in string format.

DateAdd

Adds time to a date.

DateDay

Gets the day from a date.

DateInfo

Returns the date format currently in effect on the Plant SCADA Server.

DateMonth

Gets the month from a date.

DateSub

Subtracts two dates.

DateWeekDay

Gets the day of week from a date.

DateYear

Gets the year from a date.

OLEDateToTime

Converts an OLE DATE value to a Plant SCADA time/date value.

SysTime

Marks the start of an event.

SysTimeDelta

Calculates the time-span of an event.

Time

Gets the current system time in string format.

TimeCurrent

Gets the current time/date value.

TimeHour

Gets hours from a time.

TimeInfo

Returns the time format currently in effect on the Plant SCADA Server.

TimeMidNight

Converts a time variable into the time at midnight.

TimeMin

Gets minutes from a time.

TimeSec

Gets seconds from a time.

TimeSet

Sets the new system time.

TimeToOLEDate

Converts a time/date value to an OLE DATE value.

TimeToStr

Converts a time/date variable into a string.

TimeUTCOffset

Determines the local time bias from UTC at a specified time.

See Also

Cicode Function Categories

Using Cicode Functions

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