beautypg.com

Time functions, Example 1: specific time parameters, Time functions – 13 – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual

Page 559

background image

20

C

REATING

EXPRESSIONS

20–13

• •

20

Pla
ceho

lde

r

Time functions

Use the built-in time functions to examine system time. These functions use the time or
interval parameters.

The time parameter can include the following options:

Day of week[Sun, Mon, Tue, Wed, Thu, Fri, or Sat]

Month[Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec]

Date[1 to 31]

Year[1997 to 2100]

Hour of day[00: to 23:]

Minute[:00 to :59]

Second[:00 to :59]

It does not matter in what order options are listed. You can include any or all of these
options; the more you include, the more specific the time becomes.

Example 1: Specific time parameters

The following all represent the same date and time, and are valid time parameters:

"mon aug 22 2005 17:00"

"mon aug 22 2005 17: :00"

This function

Returns

TIME(“time”)

1 (true) if the time specified is the current time.

BEFORE_TIME(“time”)

1 (true) if the expression is evaluated before the
specified time.

AFTER_TIME(“time”)

1 (true) if the expression is evaluated after the
specified time.

INTERVAL(“interval”)

1 (true) if the specified time interval has elapsed—
the interval timer starts running when an event file
starts running.

The time and interval parameters must be enclosed in quotes.