Language Guide
CHAPTER 3
Values
46 Value Class Definitions
OPERATORS
The operators that take Date values as operands are &, +, –, =, , >, , <, ,
Comes Before, Comes After, and As. In expressions containing >, , <, , Comes
Before, or Comes After, a later time is greater than an earlier time. The
following operations on Date values with the + and – operators are supported:
date + timeDifference
--result: date
date - date
--result: timeDifference
date - timeDifference
--result: date
where date is a Date value and timeDifference is an Integer value specifying a
time difference in seconds. To simplify the notation of time differences, you can
also use one or more of these of these constants:
minutes 60
hours 60 * minutes
days 24 * hours
weeks 7 * days
Here’s an example:
date "Apr 15, 1992" + 4 * days + 3 * hours + 2 * minutes
For more information about the way AppleScript operators treat Date values,
see “Date-Time Arithmetic,” which begins on page 180.