public class TimeZoneTest
{
public static void main(String[] args)
{
long timeZoneRawOff = TimeZone.getTimeZone("Asia/Shanghai")
.getRawOffset();
System.out.println(timeZoneRawOff);
String[] timeIDs = TimeZone.getAvailableIDs(8 * 60 * 60 * 1000);
for (String timeID : timeIDs)
{
System.out.println(timeID);
}
}
}
{
public static void main(String[] args)
{
long timeZoneRawOff = TimeZone.getTimeZone("Asia/Shanghai")
.getRawOffset();
System.out.println(timeZoneRawOff);
String[] timeIDs = TimeZone.getAvailableIDs(8 * 60 * 60 * 1000);
for (String timeID : timeIDs)
{
System.out.println(timeID);
}
}
}