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

AVEVA™ Plant SCADA

TimeToOLEDate

  • Last UpdatedJul 18, 2023
  • 1 minute read

Converts a Plant SCADA time/date value to an OLE DATE value (this should be stored in a REAL).

Syntax

TimeToOLEDate(Time, Local)

Time:

Time/date variable.

Local:

0 - The return value is output as UTC time.

1 - The return value is output as Local time.

Return Value

Returns an OLE date value.

TimeCurrent, OLEDateToTime

Example

Real = TimeToOLEDate(TimeCurrent(), 1);

! Sets Real to the local date/time value

See Also

Time and Date Functions

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