DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
        df.setTimeZone(TimeZone.getTimeZone("UTC"));
        String timestamp = df.format(new Date());
        System.out.println("timestamp = " + timestamp);//timestamp = 2019-06-14T02:05:14.302Z        

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2022-12-23
  • 2023-03-17
  • 2022-12-23
  • 2022-02-09
猜你喜欢
  • 2021-09-08
  • 2022-12-23
  • 2021-10-04
  • 2021-07-10
  • 2022-12-23
  • 2021-05-18
相关资源
相似解决方案