当前位置:   article > 正文

JAVA 时间T Z格式转化为本地时间_java 时间 t z 转本地时间

java 时间 t z 转本地时间

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));

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/572127
推荐阅读
相关标签
  

闽ICP备14008679号