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

Method normalize

base/src/test/java/net/time4j/tz/OffsetTest.java:388–394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

386 }
387
388 @Test
389 public void normalize() {
390 assertThat(Timezone.normalize("Etc/GMT-7"), is(ZonalOffset.ofHours(OffsetSign.AHEAD_OF_UTC, 7)));
391 assertThat(Timezone.normalize("GMT-07"), is(ZonalOffset.ofHours(OffsetSign.BEHIND_UTC, 7)));
392 assertThat(Timezone.normalize("UTC+1"), is(ZonalOffset.ofHours(OffsetSign.AHEAD_OF_UTC, 1)));
393 assertThat(Timezone.normalize("+05:30"), is(ZonalOffset.ofHoursMinutes(OffsetSign.AHEAD_OF_UTC, 5, 30)));
394 }
395
396 private static Object roundtrip(Object obj)
397 throws IOException, ClassNotFoundException {

Callers

nothing calls this directly

Calls 3

normalizeMethod · 0.95
ofHoursMethod · 0.95
ofHoursMinutesMethod · 0.95

Tested by

no test coverage detected