import java.util.*;

class WorldTime {

  /* Time Zone program   by J M Bishop December 1997
   * -----------------   Java 1.1
   *                     updated July 2000
   * Uses the Java libraries to display
   * time anywhere in the world.
   */

  public static void main (String [ ] args) {
    new WorldTime();
  }

  WorldTime() {
     TimeZone here = TimeZone.getDefault();
     Date today = new Date();
     System.out.println(today);
     System.out.println("We are in " + here.getID() + " time zone");
     System.out.println("with " + here.getRawOffset()/3600000 +
                        " offset from UTC");

     System.out.println("Daylight Savings Time used here is " +
                       here.useDaylightTime());
     System.out.println("and being now in Daylight Savings Time is "
                       + here.inDaylightTime(today));

  }
}

