Google Featured

记录精彩的程序人生

目录
java转化格式化UTC时间字符串
/  

java转化格式化UTC时间字符串

        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
        df.setTimeZone(TimeZone.getTimeZone("UTC"));
        String time = df.format(new Date());
        System.out.println("time:" + time);


标题:java转化格式化UTC时间字符串
作者:liqingyou
地址:https://www.2loveyou.com/articles/2020/01/08/1578448720334.html

评论