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

Industrial Graphic Editor

More information about system attributes

  • Last UpdatedAug 30, 2024
  • 2 minute read

System attributes are read only attributes that show the current date and time in a variety of formats.

Important: System attributes are predefined and available only for AVEVA OMI ViewApps. System attributes cannot be included in an InTouch application.

All system attributes listed in the following table operate in the MyViewApp.System namespace . The names of these system attributes are specified with the MyViewApp.System prefix in the form MyViewApp.System.attribute_name.

Attribute Name

Data Type

Attribute Type

Initial Value

Description

Date

DateTime

Read Only

No initial value

Returns the number of whole days that have passed since the January 1,1970 in the local time zone.

DateString

String

Read Only

No initial value

Returns the current date formatted as MM/DD/YYYY

DateTime

DateTime

Read Only

No initial value

Returns the real number of days since January 1, 1970, in Coordinated Universal Time (UTC), regardless of the local time zone.

Day

Integer

Read Only

No initial value

Returns the current day of a month (1-31).

Hour

Integer

Read Only

No initial value

Returns the current hour (0-23) of a day.

Minute

Integer

Read Only

No initial value

Returns the current minute (0-59) of an hour.

Month

Integer

Read Only

No initial value

Returns the current month (1-12) of a year.

Msec

Integer

Read Only

No initial value

Returns the current millisecond of the current second (000-999)

Second

Integer

Read Only

No initial value

Returns the current second (00-59) of a minute.

Time

DateTime

Read Only

No initial value

Returns the number of milliseconds of the current time in a day.

TimeString

String

Read Only

No initial value

Returns the current time formatted as HH:MM:SS

Year

Integer

Read Only

No initial value

Returns the current four-digit year.

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