public static Date getGreenwichTime(Date date) { TimeZone tzGreenwich = TimeZone.getTimeZone(TIME_ZONE_GREENWICH); // convert time to Greenwich Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(date.getTime() - tzGreenwich.getOffset(date.getTime())); return cal.getTime(); }
转换到格林威治标准时间
猜你喜欢
转载自dai-lm.iteye.com/blog/1705783
今日推荐
周排行