Hardware manual

Impact Reference Guide Commands and Functions A-D
5-9 Datalogic Automation Inc.
ADDHOUR()
This function takes two arguments and returns a real number representing a date and time. The first argu-
ment is a time value, the second argument is the number of hours to add to or subtract from it. (See“FOR-
MATDATE” on page 5-14.) Example:
newtime = ADDHOUR(now,1) yields newtime = 1.330338E9
ADDMINUTE()
This function takes two arguments and returns a real number representing a date and time. The first argu-
ment is a time value, the second argument is the number of minutes to add to or subtract from it. (See“FOR-
MATDATE” on page 5-14.) Example:
newtime = ADDMINUTE(now,1) yields newtime = 1.330334E9
ADDMONTH()
This function takes two arguments and returns a real number representing a date and time. The first argu-
ment is a time value, the second argument is the number of months to add to or subtract from it. (See“FOR-
MATDATE” on page 5-14.) Example:
nextmonth = ADDMONTH(now,1) yields nextmonth = 1.332840E9
ADDSECOND()
This function takes two arguments and returns a real number representing a date and time. The first argu-
ment is a time value, the second argument is the number of seconds to add to or subtract from it. (See“FOR-
MATDATE” on page 5-14.) Example:
nextsecond = ADDSECOND(now,1) yields nextsecond = 1.330334E9
ADDWEEK()
This function takes two arguments and returns a real number representing a date and time. The first argu-
ment is a time value, the second argument is the number of weeks to add to or subtract from it. (See“FOR-
MATDATE” on page 5-14.) Example:
nextweek = ADDWEEK(now,1) yields nextweek = 1.330939E9
ADDYEAR()
This function takes two arguments and returns a real number representing a date and time. The first argu-
ment is a time value, the second argument is the number of years to add to or subtract from it. (See“FOR-
MATDATE” on page 5-14.) Example:
nextyear = ADDYEAR(now,1) yields nextyear = 1.361957E9
AMAX(array)
This function returns the maximum value in the argument array. Example:
list[0] = 10
list[1] = 2
list[2] = 53
list[3] = 4
listmax =amax (list) yields listmax = 53