MCPcopy Create free account
hub / github.com/MenoData/Time4J / Timezone

Class Timezone

base/src/main/java/net/time4j/tz/Timezone.java:116–2078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 * @serial exclude
115 */
116public abstract class Timezone
117 implements Serializable {
118
119 //~ Statische Felder/Initialisierungen --------------------------------
120
121 private static final String NEW_LINE =
122 System.getProperty("line.separator");
123 private static final String REPOSITORY_VERSION =
124 System.getProperty("net.time4j.tz.repository.version");
125
126 private static final Comparator<TZID> ID_COMPARATOR = Comparator.comparing(TZID::canonical);
127
128 /**
129 * <p>This standard strategy which is also used by the JDK-class
130 * {@code java.util.GregorianCalendar} subtracts the next defined
131 * offset from any local timestamp in order to calculate the global
132 * time while pushing forward an invalid local time. </p>
133 *
134 * <p>Equivalent to
135 * {@code GapResolver.PUSH_FORWARD.and(OverlapResolver.LATER_OFFSET)}. </p>
136 *
137 * @see #getOffset(GregorianDate,WallTime)
138 */
139 /*[deutsch]
140 * <p>Diese auch von der JDK-Klasse {@code java.util.GregorianCalendar}
141 * verwendete Standardstrategie zieht von einem beliebigen lokalen
142 * Zeitstempel den jeweils n&auml;chstdefinierten Offset ab, um die
143 * globale Zeit zu erhalten, wobei eine ung&uuml;ltige lokale Zeit
144 * um die L&auml;nge einer Offset-Verschiebung vorgeschoben wird. </p>
145 *
146 * <p>&Auml;quivalent zu:
147 * {@code GapResolver.PUSH_FORWARD.and(OverlapResolver.LATER_OFFSET)}. </p>
148 *
149 * @see #getOffset(GregorianDate,WallTime)
150 */
151 public static final TransitionStrategy DEFAULT_CONFLICT_STRATEGY =
152 GapResolver.PUSH_FORWARD.and(OverlapResolver.LATER_OFFSET);
153
154 /**
155 * <p>In addition to the {@link #DEFAULT_CONFLICT_STRATEGY
156 * standard strategy}, this strategy ensures the use of valid local
157 * timestamps. </p>
158 *
159 * <p>Equivalent to
160 * {@code GapResolver.ABORT.and(OverlapResolver.LATER_OFFSET)}. </p>
161 */
162 /*[deutsch]
163 * <p>Legt bei Transformationen von lokalen Zeitstempeln zu UTC fest,
164 * da&szlig; nur in der Zeitzone g&uuml;ltige Zeitstempel zugelassen
165 * werden. </p>
166 *
167 * <p>Ansonsten wird die {@link #DEFAULT_CONFLICT_STRATEGY
168 * Standardstrategie} verwendet. &Auml;quivalent zu:
169 * {@code GapResolver.ABORT.and(OverlapResolver.LATER_OFFSET)}. </p>
170 */
171 public static final TransitionStrategy STRICT_MODE =
172 GapResolver.ABORT.and(OverlapResolver.LATER_OFFSET);
173

Callers

nothing calls this directly

Calls 15

loadPredefinedMethod · 0.95
fillEtceteraMethod · 0.95
getInstanceMethod · 0.95
compareTZDBMethod · 0.95
getTZMethod · 0.95
resolveMethod · 0.95
getDefaultTZMethod · 0.95
andMethod · 0.65
canonicalMethod · 0.65
getNameMethod · 0.65
isEmptyMethod · 0.65

Tested by

no test coverage detected