Next Previous Up Top Contents Index

7.4 Performing operations on dates and durations

7.4.4 Dealing with time-zones

The following functions return information about the time-zone that the host machine is in.

local-time-zone-name

Function

local-time-zone-name () => time-zone-name

Returns the name of the time-zone that the local computer is in. The name is returned as a string (for example, "EST").
local-time-zone-offset

Function

local-time-zone-offset () => time-zone-offset

Returns the offset of the time-zone from Greenwich Mean Time, expressed as a number of minutes. A positive number represents an offset ahead of GMT, and a negative number represents an offset behind GMT. The return value is an instance of <integer> (for example, -300 represents the offset for EST, which is 5 hours behind GMT). The return value incorporates daylight savings time when necessary.
local-daylight-savings-time?

Function

local-daylight-savings-time? () => dst?

Returns #t if the local computer is using Daylight Savings Time.

System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index