当前位置:网站首页>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边栏推荐
- PPOCR 检测器配置文件参数详解
- Score interview (1)----related to business
- 记2022年七夕感慨
- PCB layout must know: teach you to correctly lay out the circuit board of the op amp
- Google启动通用图像嵌入挑战赛
- HDD杭州站•ArkUI让开发更灵活
- 使用Windbg过程中两个使用细节分享
- DocuWare平台——文档管理的内容服务和工作流自动化的平台详细介绍(下)
- 数据可视化(一)
- SMB + SMB2: Accessing shares return an error after prolonged idle period
猜你喜欢

PCB layout must know: teach you to correctly lay out the circuit board of the op amp

SQL外连接之交集、并集、差集查询

gradle尚硅谷笔记

电气工程的标准是什么

API 网关简述

ECCV 2022 | 视听分割:全新任务,助力视听场景像素级精细化理解

双因子与多因子身份验证有什么区别?

Leetcode刷题——623. 在二叉树中增加一行

张朝阳对话俞敏洪:一边是手推物理公式,一边是古诗信手拈来

Common operations of oracle under linux and daily accumulation of knowledge points (functions, timed tasks)
随机推荐
SQL Outer Join Intersection, Union, Difference Query
如何用Golang来手写一个Blog - Milu.blog 开发总结
【加密解密】明文加密解密-已实现【已应用】
例题 可达性统计+bitset的使用
2022杭电多校 第6场 1008.Shinobu Loves Segment Tree 规律题
API 网关简述
如何测试一下现场的备机失败,转发主机的场景?
Leetcode刷题——623. 在二叉树中增加一行
60行从零开始自己动手写FutureTask是什么体验?
RT-Thread记录(一、RT-Thread 版本、RT-Thread Studio开发环境 及 配合CubeMX开发快速上手)
Linux:记一次CentOS7安装MySQL8(博客合集)
数据可视化(二)
Guys, I am a novice. I use flinksql to write a simple count of user visits according to the document, but it ends after executing it once.
结合“xPlus”探讨软件架构的创新与变革
Android 开发用 Kotlin 编程语言三 循环控制
FPGA:基础入门按键控制LED灯
金融业“限薪令”出台/ 软银出售过半阿里持仓/ DeepMind新实验室成立... 今日更多新鲜事在此...
#yyds干货盘点#【愚公系列】2022年08月 Go教学课程 001-Go语言前提简介
产品太多了,如何实现一次登录多产品互通?
STM32 entry development: write XPT2046 resistive touch screen driver (analog SPI)