UTC vs ISO格式的时间 [英] UTC vs ISO format for time

查看:244
本文介绍了UTC vs ISO格式的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解UTC和ISO格式之间的区别,以及何时在服务器之间传输消息时使用什么格式.所以当我尝试以下内容时,这就是我所得到的

I'm trying to understand the difference between UTC and ISO formats and when to use what when transferring messages between servers. So When I try the following this is what I get

new Date().toISOString()
"2019-11-14T00:55:31.820Z"

new Date().toUTCString()
"Thu, 14 Nov 2019 00:55:16 GMT"

我了解ISO格式及其用于表示时间的标准,但是UTC的目的是什么,我将在哪里使用它们?

I understand the ISO format and its a standard used to represent time, but what is the purpose of UTC and where would I use them?

推荐答案

tl; dr

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆