MCPcopy Create free account
hub / github.com/apache/groovy / getTimeZone

Method getTimeZone

src/main/java/groovy/time/TimeCategory.java:86–91  ·  view source on GitHub ↗

Retrieves the default TimeZone for a date by using the default Locale settings. Recommended that you use TimeZone.getDefault() instead. @param self a Date @return the TimeZone

(Date self)

Source from the content-addressed store, hash-verified

84 * @return the TimeZone
85 */
86 @Deprecated
87 public static TimeZone getTimeZone(Date self) {
88 Calendar calendar = Calendar.getInstance();
89 calendar.setTime(self);
90 return calendar.getTimeZone();
91 }
92
93 /**
94 * Get the DST offset (if any) for the default locale and the given date.

Callers 10

formatMethod · 0.80
toCalendarMethod · 0.80
toTimeZoneMethod · 0.80
getZoneIdMethod · 0.80
OptionsClass · 0.80
timezoneMethod · 0.80
DatesClass · 0.80
fromISO8601Method · 0.80
fromJsonDateMethod · 0.80

Calls 1

getInstanceMethod · 0.65

Tested by

no test coverage detected