16.2. NumbersThe 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.14159265359The ratio of a circle's circumference to its diameter. Exampleset area to pi * (radius ^ 2)
60 60The number of seconds in a minute. Example(current date) + 30 * minutes -- half an hour from now
3600 3600The number of seconds in an hour. Example(current date) + 2 * hours -- two hours from now
86400 86400The number of seconds in a day. Example(current date) + 2 * days -- two days from now
604800 604800The number of seconds in a week. Example(current date) + 2 * weeks -- two weeks from now |