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

AVEVA™ InTouch HMI

UTCDateTime() Function

  • Last UpdatedFeb 21, 2017
  • 1 minute read

Returns the UTC time, the UTC date and time, or the local time zone.

Syntax

result = UTCDateTime (format)

Parameters

format

Determines what content is returned. A literal string value, message tagname, or string expression with the following possible values:

UTC_SHORT - the function returns the UTC time

UTC_LONG - the function returns the UTC date and time

UTC_LOCAL - the function returns the name of the time zone as set in the time zone settings of the local operating system

Any other values return the UTC date and time in default format (ddd mm dd hh:mm:ss yyyy).

Example(s)

At 09:24 AM Monday January 6th 2003 in the Pacific time zone, the UTCDateTime() function returns the following.

This script returns 17:24:05

UTCDateTime("UTC_SHORT")

This script returns 01/06/2003 17:24:05

UTCDateTime("UTC_LONG")

This script returns Pacific Standard Time -8:0: 1

UTCDateTime("UTC_LOCAL")

This script returns Mon Jan 06 17:24:05 2003.

UTCDateTime("Invalid")

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