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)
| 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. |
no test coverage detected