当前位置:网站首页>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
边栏推荐
- HDD杭州站•ArkUI让开发更灵活
- Google启动通用图像嵌入挑战赛
- Huawei's lightweight neural network architecture GhostNet has been upgraded again, and G-GhostNet (IJCV22) has shown its talents on the GPU
- 华为分析&联运活动,助您提升游戏总体付费
- 什么是 DevOps?看这一篇就够了!
- 负载均衡应用场景
- E-sports, convenience, efficiency, security, key words for OriginOS functions
- FPGA: Use of the development environment Vivado
- 【AGC】增长服务1-远程配置示例
- 化繁为简!阿里新产亿级流量系统设计核心原理高级笔记(终极版)
猜你喜欢
Google启动通用图像嵌入挑战赛
The host computer develops C# language: simulates the STC serial port assistant to receive the data sent by the microcontroller
数据可视化(二)
What are the standards for electrical engineering
Android 开发用 Kotlin 编程语言 二 条件控制
5G NR 系统消息
RT-Thread记录(一、RT-Thread 版本、RT-Thread Studio开发环境 及 配合CubeMX开发快速上手)
【加密解密】明文加密解密-已实现【已应用】
使用Windbg过程中两个使用细节分享
什么是 DevOps?看这一篇就够了!
随机推荐
今天告诉你界面控件DevExpress WinForms为何弃用经典视觉样式
【翻译】混沌网+SkyWalking:为混沌工程提供更好的可观察性
poj2287 Tian Ji -- The Horse Racing(2016xynu暑期集训检测 -----C题)
PG优化篇--执行计划相关项
使用Windbg过程中两个使用细节分享
《分布式云最佳实践》分论坛,8 月 11 日深圳见
SQL外连接之交集、并集、差集查询
5G NR 系统消息
第五章:多线程通信—wait和notify
poj2935 Basic Wall Maze (2016xynu暑期集训检测 -----D题)
金融业“限薪令”出台/ 软银出售过半阿里持仓/ DeepMind新实验室成立... 今日更多新鲜事在此...
第五章:activiti流程分流判断,判断走不同的任务节点
R语言ggplot2可视化:可视化密度图(Density plot)、可视化多个分组的密度图、数据点分布在箱图中间、添加主标题、副标题、题注信息
In-depth understanding of timeout settings for Istio traffic management
MMDetection实战:MMDetection训练与测试
Create a Dapp, why choose Polkadot?
产品太多了,如何实现一次登录多产品互通?
FPGA:基础入门按键控制LED灯
Chapter 4: In the activiti process, variable transmission and acquisition process variables, setting and acquiring multiple process variables, setting and acquiring local process variables "recommende
一张图看懂 SQL 的各种 join 用法!