Next Previous Up Top Contents Index

7.6 The DATE module

<date>

Sealed class

Summary

The class of objects representing dates.

Superclasses

<number>

Init-keywords

iso8601-string
An instance of false-or(<string>). Default value: #f.

year
An instance of limited(<integer>, min: 1800, max: 2199).

month
An instance of limited(<integer>, min: 1, max: 12).

day
An instance of limited(<integer>, min: 1, max: 31).

hours
An instance of limited(<integer>, min: 0, max: 23). Default value: 0.

minutes
An instance of limited(<integer>, min: 0, max: 59). Default value: 0.

seconds
An instance of limited(<integer>, min: 0, max: 59). Default value: 0.

microseconds
An instance of limited(<integer>, min: 0, max: 999999). Default value: 0.

time-zone-offset
An instance of <integer>. Default value: 0.

Library

system

Module

date

Description

Represents a date and time between 1 Jan 1800 00:00:00 and 31 Dec 2199 23:59:59, Greenwich Mean Time (GMT).

A <date> can be specified to microsecond precision and includes a time zone indication.

If supplied, the iso8601-string: init-keyword completely specifies the value of the <date>. Otherwise, the year:, month:, and day: init-keywords must be supplied. Note that, although you can supply ISO 8601 strings that represent any time zone specification, the related function as-iso8601-string always returns an ISO 8601 string representing a time in Greenwich Mean Time.

For the time-zone-offset init-keyword, a positive number represents an offset ahead of GMT, in minutes, and a negative number represents an offset behind GMT. The value returned is an instance of <integer> (for example, -300 represents the offset for EST, which is 5 hours behind GMT).

Operations

= < + - as-iso8601-string current-date date-day
date-day-of-week date-hours date-microseconds
date-minutes date-month date-seconds
date-time-zone-offset date-time-zone-offset-setter
date-year decode-date

See also

as-iso8601-string, page 133

<day-of-week>, page 143


System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index