当前位置:网站首页>What do T and Z in the time format 2020-01-13T16:00:00.000Z represent and how to deal with them
What do T and Z in the time format 2020-01-13T16:00:00.000Z represent and how to deal with them
2022-08-05 10:57:00 【not asking for help 0】
Reprint
T means delimiter, Z means UTC.
UTC: Universal Standard Time, adding 8 hours to the standard time, that is, the East Eighth District Time, which is Beijing Time.
Example
Beijing time: 2020-01-14 00:00:00 The corresponding international standard time format is: 2020-01-13T16:00:00.000Z
String dateTime = "2020-01-13T16:00:00.000Z";dateTime = dateTime.replace("Z", " UTC");SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS Z");SimpleDateFormat defaultFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");try {Date time = format.parse(dateTime);String result = defaultFormat.format(time);System.out.println(result);} catch (Exception e) {e.printStackTrace();}// Output result: 2020-01-14 00:00:00边栏推荐
猜你喜欢

012_SSS_ Improving Diffusion Model Efficiency Through Patching

Google启动通用图像嵌入挑战赛

Ali's new launch: Microservices Assault Manual, all operations are written out in PDF

API 网关简述

Huawei's lightweight neural network architecture GhostNet has been upgraded again, and G-GhostNet (IJCV22) has shown its talents on the GPU

苹果Meta都在冲的Pancake技术,中国VR团队YVR竟抢先交出产品答卷

5G NR 系统消息

电气工程的标准是什么

012年通过修补_sss_提高扩散模型效率

PostgreSQL 2022 Report: Rising popularity, open source, reliability and scaling key
随机推荐
JS introduction to reverse the recycling business network of learning, simple encryption mobile phone number
图像分割模型——segmentation_models_pytorch和albumentations 组合实现多类别分割
拓朴排序例题
七夕来袭!还要做CDH数据迁移怎么办?来看看DistCp
[Android] How to use RecycleView in Kotlin project
工程设备在线监测管理系统自动预警功能
Chapter 5: Multithreaded Communication—wait and notify
ECCV 2022 | 视听分割:全新任务,助力视听场景像素级精细化理解
FPGA: Basic Getting Started LED Lights Blinking
PCB layout must know: teach you to correctly lay out the circuit board of the op amp
如何修改管理工具client_encoding
微信小程序标题栏封装
化繁为简!阿里新产亿级流量系统设计核心原理高级笔记(终极版)
自定义过滤器和拦截器实现ThreadLocal线程封闭
四、kubeadm单master
The query that the user's test score is greater than the average score of a single subject
如何测试一下现场的备机失败,转发主机的场景?
Image segmentation model - a combination of segmentation_models_pytorch and albumations to achieve multi-category segmentation
这份阿里强推的并发编程知识点笔记,将是你拿大厂offer的突破口
软件测试之集成测试