SimpleDateFormat df = new SimpleDateFormat(“yyyyMMddHHmmss’Z’”);
SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);
df.setTimeZone(TimeZone.getTimeZone(“UTC”));
String entryTime = (String) createTimestamp;
entryTime = sdf.format(df.parse(entryTime));
JAVA 时间T Z格式转化为本地时间
猜你喜欢
转载自blog.csdn.net/Bzbtyhydcxy/article/details/103437662
今日推荐
周排行