/[classpath]/classpath/java/util/TimeZone.java
ViewVC logotype

Diff of /classpath/java/util/TimeZone.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by tromey, Mon May 13 22:45:21 2002 UTC revision 1.20 by tromey, Wed Sep 25 21:08:46 2002 UTC
# Line 961  public abstract class TimeZone implement Line 961  public abstract class TimeZone implement
961    public abstract boolean inDaylightTime(Date date);    public abstract boolean inDaylightTime(Date date);
962    
963    /**    /**
964       * Gets the daylight savings offset.  This is a positive offset in
965       * milliseconds with respect to standard time.  Typically this
966       * is one hour, but for some time zones this may be half an our.
967       * <p>The default implementation returns 3600000 milliseconds
968       * (one hour) if the time zone uses daylight savings time
969       * (as specified by {@link #useDaylightTime()}), otherwise
970       * it returns 0.
971       * @return the daylight savings offset in milliseconds.
972       * @since 1.4
973       */
974      public int getDSTSavings ()
975      {
976        return useDaylightTime () ? 3600000 : 0;
977      }
978    
979      /**
980     * Gets the TimeZone for the given ID.     * Gets the TimeZone for the given ID.
981     * @param ID the time zone identifier.     * @param ID the time zone identifier.
982     * @return The time zone for the identifier or GMT, if no such time     * @return The time zone for the identifier or GMT, if no such time

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26