public static void main(String[] args) throws InterruptedException {
//Arrays.stream(TimeZone.getAvailableIDs()).forEach(x-> System.out.println(x));
TimeZone japanTimeZone = TimeZone.getTimeZone("Japan");
TimeZone.setDefault(japanTimeZone);
Long time=new Date().getTime();
//-------Asia/Shanghai
TimeZone shangHaiTimeZone = TimeZone.getTimeZone("Asia/Shanghai");
TimeZone.setDefault(shangHaiTimeZone);
Date date=new Date(time);
System.out.println(System.currentTimeMillis());
System.out.println(TimeZoneUtil.format(date, TimeUtil.DATE_TIME_MIN_PATTERN,japanTimeZone));
//----America/Belem
TimeZone belemTimeZone = TimeZone.getTimeZone("America/Belem");
TimeZone.setDefault(belemTimeZone);
Date date1=new Date(time);
System.out.println(System.currentTimeMillis());
System.out.println(TimeZoneUtil.format(date1, TimeUtil.DATE_TIME_MIN_PATTERN,japanTimeZone));
}