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

Method of

base/src/main/java/net/time4j/tz/Timezone.java:576–580  ·  view source on GitHub ↗
(TZID tzid)

Source from the content-addressed store, hash-verified

574 * @throws IllegalArgumentException if given timezone cannot be loaded
575 */
576 public static Timezone of(TZID tzid) {
577
578 return Timezone.getTZ(tzid, true);
579
580 }
581
582 /**
583 * <p>Gets the timezone for given identifier. </p>

Callers 15

comparison1Method · 0.95
comparison2Method · 0.95
comparison3Method · 0.95
oldApiTimezoneMethod · 0.95
zdtToTime4JMethod · 0.95
zdtFromTime4JMethod · 0.95
printMomentInLondonMethod · 0.95
parseMomentInLondonMethod · 0.95
printMomentInGermanyMethod · 0.95
parseMomentInGermanyMethod · 0.95
toMomentMethod · 0.95
toTimestampMethod · 0.95

Calls 3

getTZMethod · 0.95
ofSystemMethod · 0.95
resolveMethod · 0.95

Tested by 15

comparison1Method · 0.76
comparison2Method · 0.76
comparison3Method · 0.76
oldApiTimezoneMethod · 0.76
zdtToTime4JMethod · 0.76
zdtFromTime4JMethod · 0.76
printMomentInLondonMethod · 0.76
parseMomentInLondonMethod · 0.76
printMomentInGermanyMethod · 0.76
parseMomentInGermanyMethod · 0.76
toMomentMethod · 0.76
toTimestampMethod · 0.76