MAINSAIL Language Manual, Section 36.5

previous   next   top   contents   index   framed top   this page unframed


36.5. $getDefinedTimeZones

Figure 36–3. $getDefinedTimeZones
STRING
PROCEDURE   $getDefinedTimeZones
                        (
PRODUCES OPTIONAL BOOLEAN
                             
wasSet);

$getDefinedTimeZones returns the list of time zones known to the MAINSAIL runtime system. One time zone is included per line with its name and offset from GMT; the first two lines form a header, so that the entire STRING is suitable for display to a user. The value returned when the known time zones are those of the contiguous United States is:

Time Zone Name Offset West of GMT
PDT 7 hours 0 minutes 0 seconds (25200 seconds)
PST 8 hours 0 minutes 0 seconds (28800 seconds)
MDT 6 hours 0 minutes 0 seconds (21600 seconds)
MST 7 hours 0 minutes 0 seconds (25200 seconds)
CDT 5 hours 0 minutes 0 seconds (18000 seconds)
CST 6 hours 0 minutes 0 seconds (21600 seconds)
EDT 4 hours 0 minutes 0 seconds (14400 seconds)
EST 5 hours 0 minutes 0 seconds (18000 seconds)

wasSet is set to the value of $timeSubcommandsSet. The values of the time zones known to MAINSAIL are set by $addDefinedTimeZone or by the MAINEX subcommand DEFINETIMEZONE. MAINSAIL's time-zone-related facilities are described in more detail in Section 24.2 and in the description of MAINEX in Chapter 21 of the MAINSAIL Utilities User's Guide.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 36.5