Example 2: less specific time parameters, Example 3: time and interval functions – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual
Page 560

F
ACTORY
T
ALK
V
IEW
S
ITE
E
DITION
U
SER
’
S
G
UIDE
20–14
• •
•
•
•
":00 aug 22 mon 2005 17:"
Example 2: Less specific time parameters
Following are valid examples of time parameters:
“17:00” means any day at 5:00 a.m.
“ :30 ” means any hour, on the half hour
“ mon 17:” means 5:00 p.m. each Monday
The interval parameter has the format
<number> <units>
where <units> is one of:
Mil (millisecond)
Sec (second)
Min (minute)
Hou (hour)
Day (day)
Wee (week)
Mon (month)
Yea (year)
Example 3: Time and interval functions
TIME(“sun aug 21 2005 14:30”)
If it is exactly 2:30 p.m. and 0 seconds, on Sunday, August 21, 2005, it returns 1 (true);
otherwise, it returns 0 (false).
AFTER_TIME(“sun aug 21 2005 14:30”)
The validity of the date is not checked. For example, if Aug 22 2005 is not a Monday, this error
is not detected.