Date now = Calendar.getInstance().getTime();
DateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z");
format.setTimeZone( TimeZone.getTimeZone("GMT+8"));
System.out.println(format.format(now));
Get Beijing time, in accordance with rfc822 standard time format.
If you get the Chinese time, you can use String.format to format again, refer to the following:
System.out. println(String.format(Locale.US, "%ta %tb",now,now));