DekGenius.com
[ Team LiB ] Previous Section Next Section

16.2 Numbers

The minutes property and its ilk are intended to help you convert to seconds. This is because date arithmetic uses seconds (Section 13.3 and Section 15.1).

pi3.14159265359

Description

The ratio of a circle's circumference to its diameter.

Example

set area to pi * (radius ^ 2)
minutes60

Description

The number of seconds in a minute.

Example

(current date) + 30 * minutes -- half an hour from now
hours3600

Description

The number of seconds in an hour.

Example

(current date) + 2 * hours -- two hours from now
days86400

Description

The number of seconds in a day.

Example

(current date) + 2 * days -- two days from now
weeks604800

Description

The number of seconds in a week.

Example

(current date) + 2 * weeks -- two weeks from now
    [ Team LiB ] Previous Section Next Section