Time, Date, And Day Keywords - AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual

Programming language
Table of Contents

Advertisement

Using Time, Date, and Day

Time, Date, and Day Keywords

Time, Date, and Day Keywords
DATE
The system variable DATE
returns the current date in the
form of the string MM/DD/YY,
in which MM equals month,
DD equals day, and YY
equals year.
DAY
The system variable DAY
returns the current day of the
week in the form of one of the
strings MON, TUE, WED,
THU, FRI, SAT, or SUN.
TIME
The system variable TIME
returns the current time in the
form of the string HH:MM:SS,
in which HH equals hours,
MM equals minutes, and SS
equals seconds.
88
The wildcard character ? is allowed for string comparisons. For example:
IF (DATE = '12/25/??')
{
(* These statements are executed every Christmas *)
}
Example:
IF (DAY = 'MON')
{
(* These statements are executed every Monday *)
}
The time is given in a 24-hour (military time) format. For example:
IF (TIME = '12:ØØ:ØØ')
{
(* These statements are executed at noon *)
}
Axcess Programming Language

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Axcess

Table of Contents