AppleScript: The Definitive Guide, 2nd Edition
16.2. Numbers
The minutes property and its ilk are intended to help you convert to seconds. This is because date arithmetic uses seconds (see "Date" in Chapter 13 and "Arithmetic Operators" in Chapter 15).
3.14159265359 3.14159265359
The ratio of a circle's circumference to its diameter. Example
set area to pi * (radius ^ 2)
60 60
The number of seconds in a minute. Example
(current date) + 30 * minutes -- half an hour from now
3600 3600
The number of seconds in an hour. Example
(current date) + 2 * hours -- two hours from now
86400 86400
The number of seconds in a day. Example
(current date) + 2 * days -- two days from now
604800 604800
The number of seconds in a week. Example
(current date) + 2 * weeks -- two weeks from now
|
Категории