我已经搜索了很多次,但我没有找到我真正需要的东西,我写这个是为了找到UTC时区:
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
df.setTimeZone(TimeZone.getTimeZone("Europe/Istanbul"));
String gmtTime = df.format(new Date());
Date gmtTime_ =null;
try {
gmtTime_ = df.parse(gmtTime);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
但我需要UTC+2
时区,我怎样才能得到那个时区?