我有SimpleDateFormat。SimpleDateFormat返回1小时为什么?
Date vrcTime;
SimpleDateFormat vrcCurrentTimeTextValue;
vrcTime.setTime (0);
vrcTimeFormat = new SimpleDateFormat ("HH:mm:ss");
vrcCurrentTimeTextValue = vrcTimeFormat.format (vrcTime);
为什么我的SimpleDateFormat返回1小时,即使时间为0?
在哪个时区? – Henry
使用vrcTimeFormat.setTimeZone(TimeZone.getTimeZone( “GMT”)); vrcCurrentTimeTextValue = vrcTimeFormat.format(vrcTime); –
欧洲中部时间(UTC +01:00) –