FileDocCategorySizeDatePackage
KVMTimeZones.javaAPI DocExample548Tue Nov 20 20:50:40 GMT 2001ora.ch2

KVMTimeZones

public class KVMTimeZones extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        TimeZone defaultTZ = TimeZone.getDefault();
        String[] ids = TimeZone.getAvailableIDs();
        
        System.out.println("Available time zone ids: ");
        for (int i = 0; i < ids.length; i++) {
            System.out.print(ids[i] + " ");
        }
        System.out.println("\nDefault timezone is " + defaultTZ.getID() + 
                        ", GMT offset = " + defaultTZ.getRawOffset());