我想获得时区的真实偏移量。
我的问题 :
TimeZone tz = TimeZone.getTimeZone("America/Toronto");
int test = tz.getRawOffset();
test = -18000000
-18000000/1000/3600 = -5
Run Code Online (Sandbox Code Playgroud)
我看到多伦多的时间是 UTC-4。
它在文档中写道,该方法返回原始偏移量。
但我怎样才能得到真正的偏移量呢?