AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
getTimeZone ([String id]) yoix.util
 
When no argument is supplied, the current default timezone is returned. Otherwise, the timezone object corresponding to id is returned. If id is not recognized, the GMT timezone object is returned. The built-in getTimeZoneIDs provides an array of recognized timezone ids.
 
 Example:   In the following example, the date is printed out using the current default timezone and then printed again using the Pacific timezone.
import yoix.stdio.*;
import yoix.util.*;

puts(date());
puts(date(getTimeZone("PST")));
The results on standard output are:
Wed Oct 18 21:02:20 EDT 2000
Wed Oct 18 18:02:20 PDT 2000
 
 Return:   TimeZone
 
 See Also:   getTimeZone, getTimeZoneIDs, inDaylightTime, setTimeZone, TimeZone

 

Yoix is a registered trademark of AT&T Inc.