.. java:import:: java.util Date .. java:import:: java.util TimeZone UTCTimeZoneShift ================ .. java:package:: org.caosdb.datetime :noindex: .. java:type:: public class UTCTimeZoneShift extends TimeZone Represents the shift, i.e. the time difference between a time zone 'X' and the UTC+0 time zone. This is used for (de-)serialization of ISO8601-compliant representations of UTC-relative time zones (e.g. +0100 for CEST) :author: tf Fields ------ NEGATIVE ^^^^^^^^ .. java:field:: public static final int NEGATIVE :outertype: UTCTimeZoneShift POSITIVE ^^^^^^^^ .. java:field:: public static final int POSITIVE :outertype: UTCTimeZoneShift Constructors ------------ UTCTimeZoneShift ^^^^^^^^^^^^^^^^ .. java:constructor:: public UTCTimeZoneShift(int sign, int h, int m) :outertype: UTCTimeZoneShift Methods ------- equals ^^^^^^ .. java:method:: @Override public boolean equals(Object obj) :outertype: UTCTimeZoneShift getID ^^^^^ .. java:method:: @Override public String getID() :outertype: UTCTimeZoneShift getISO8601Offset ^^^^^^^^^^^^^^^^ .. java:method:: public static String getISO8601Offset(TimeZone timezone, long date) :outertype: UTCTimeZoneShift Generate an ISO 8601 time zone offset string (e.g. +0200) for the given time zone at the given date. The date is necessary to decide whether the time zone (e.g. Europe/Berlin) is in the daylight saving regime or not. In winter Europe/Berlin has a +0100 offset, in summer it is +0200. :param timezone: - the time zone in question. :param date: - the date for which the offset is to be calculated (unix time stamp). :return: ISO 8601 time zone offset. getOffset ^^^^^^^^^ .. java:method:: @Override public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) :outertype: UTCTimeZoneShift getRawOffset ^^^^^^^^^^^^ .. java:method:: @Override public int getRawOffset() :outertype: UTCTimeZoneShift inDaylightTime ^^^^^^^^^^^^^^ .. java:method:: @Override public boolean inDaylightTime(Date date) :outertype: UTCTimeZoneShift setRawOffset ^^^^^^^^^^^^ .. java:method:: @Override public void setRawOffset(int offsetMillis) :outertype: UTCTimeZoneShift toString ^^^^^^^^ .. java:method:: @Override public String toString() :outertype: UTCTimeZoneShift ISO 8601 conform +/-hhmm. useDaylightTime ^^^^^^^^^^^^^^^ .. java:method:: @Override public boolean useDaylightTime() :outertype: UTCTimeZoneShift