当前位置:网站首页>Time conversion error
Time conversion error
2022-07-05 12:36:00 【Hua Li Hu Shao】
I encountered a problem this morning The business is Query the database to get the data then Convert the timestamp in the data Deposit in map Back in
No problem offline, no problem online Incorrect time conversion ··· such as Should be 00:10 Just turn it around 14:10…
Print
dateTime Is the timestamp in the database
Log.info(dateTime +“ = ”+ new Date(dateTime)+ new SimpleDateformatter(“HH:mm”))
What's printed out is
1631465400000 = Sun Sep 12 16:50:00 UTC 2021 = 16:50
The reason is that the time of the server itself is abnormal ·· …
边栏推荐
- MySQL multi table operation
- Sqoop import and export operation
- Programming skills for optimizing program performance
- Get data from the database when using JMeter for database assertion
- Redis's memory elimination mechanism, read this article is enough.
- Acid transaction theory
- Embedded software architecture design - message interaction
- How can labels/legends be added for all chart types in chart. js (chartjs.org)?
- MySQL view
- Distributed cache architecture - cache avalanche & penetration & hit rate
猜你喜欢
Read and understand the rendering mechanism and principle of flutter's three trees
Take you two minutes to quickly master the route and navigation of flutter
Resnet18 actual battle Baoke dream spirit
Keras implements verification code identification
Redis highly available sentinel mechanism
Tabbar configuration at the bottom of wechat applet
Making and using the cutting tool of TTF font library
Embedded software architecture design - message interaction
Get data from the database when using JMeter for database assertion
Learn memory management of JVM 01 - first memory
随机推荐
Master-slave mode of redis cluster
MySQL splits strings for conditional queries
MySQL function
强化学习-学习笔记3 | 策略学习
About cache exceptions: solutions for cache avalanche, breakdown, and penetration
Keras implements verification code identification
MySQL multi table operation
How does MySQL execute an SQL statement?
JDBC -- use JDBC connection to operate MySQL database
GPS數據格式轉換[通俗易懂]
Learn JVM garbage collection 02 - a brief introduction to the reference and recycling method area
MySQL constraints
Add a new cloud disk to Huawei virtual machine
Clear neo4j database data
ZABBIX customized monitoring disk IO performance
Introduction to GNN
Knowledge representation (KR)
Seven polymorphisms
Swift - add navigation bar
Pytoch monolayer bidirectional_ LSTM implements MNIST and fashionmnist data classification