![]() |
<Time> |
[ Values | now | notime | Type Constructors | Get | difftime | Operators ]
The values of type time are legal points in time. That is, a (gregorian calender) date and an hour-minute-second time of day. Illegal times, such as "1999/02/29, 20:61:30" are automatically converted to legal ones ("1999/03/01, 21:01:30"). All time values must be within the following range [1970/01/01, 00:00:00..2038/01/19, 03:14:07]. Any attempts to construct a time not in this interval will result in the special time value called notime which is also the default value for the type time. All time values are assumed to be in the server's local timezone.
This is a constant time value which is less than all other time values. It is the default value for variables of type time and it is produced whenever illegal time operations are performed. Attempts to get components from a notime value will produce a runtime error.
exp ::= difftime ( exp , exp )
This predefined function takes two time values and produces an integer holding the difference between the two points in time in seconds.
The following binary operators are available on values of type time:
| Operator | Description |
|---|---|
| __<__ | less than |
| __>__ | greater than |
| __<=__ | less than or equal |
| __>=__ | greater than or equal |
| __==__ | equal |
| __!=__ | not equal |
| __=__ | assignment |
|
bigwig@brics.dk Last updated: November 2, 2001 |
|