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

AVEVA™ InTouch HMI

检索数值日期与时间信息

  • Last UpdatedSep 24, 2024
  • 1 minute read

在脚本中,通过使用多个数值系统标记与一个脚本函数,可以检索有关系统日期与时间的信息。这些标记与脚本函数可以用在其它数学运算中。系统标记与脚本函数包括:

使用对象

作用

$Year

返回当前年份。

$Month

返回当前月份。

$Day

返回月份中的当前日期值。

$Hour

返回一日中的当前小时值。

$Minute

返回当前时刻的分钟值。

$Second

返回当前这秒的值。

$Msec

返回当前这毫秒的值。

$Time

返回自午夜以来的时间(以毫秒为单位,本地时区)。

$Date

返回自 1970 年 1 月 1 日以来的整天数(本地时区)。

$DateTime

返回自 1970 年 1 月 1 日以来的天数(包括非整天,本地时区)。

DateTimeGMT()

返回自 1970 年 1 月 1 日以来的天数(包括非整天,通用协调时间 (UTC))。