GMT时间和UTC时间,当前时间
来源:互联网 发布:linux jdk设置jvm内存 编辑:程序博客网 时间:2024/06/09 17:37
1.科普 CST 含义
CST: 中部标准时间 (Central Standard Time) 同时表示下面4个时区
CST Central Standard Time(USA) UT-6:00 CST Central Standard Time(Australia) UT 9:30 CST China Standard Time UT 8:00 CST Cuba Standard Time UT-4:0
我们常遇到的应该就是 China Standard Time.
GMT 和 UTC 的关系
UTC (Universal Time Coordinated), 以子午初线(经度0)上的评价太阳时为依据, 也就是英国伦敦的平均太阳时
CST: 中部标准时间 (Central Standard Time) 同时表示下面4个时区
CST Central Standard Time(USA) UT-6:00 CST Central Standard Time(Australia) UT 9:30 CST China Standard Time UT 8:00 CST Cuba Standard Time UT-4:0
我们常遇到的应该就是 China Standard Time.
GMT 和 UTC 的关系
UTC (Universal Time Coordinated), 以子午初线(经度0)上的评价太阳时为依据, 也就是英国伦敦的平均太阳时
GMT (Greenwitch Mean Time) 格林威治平均时间, 由于地球绕太阳的运行的轨道是椭圆, 导致 UTC 表示的时间, 不是很准确, 因此提出了 GMT 时间, 每年或者2年对 UTC 增加一个闰秒, 来完成修正. 一般上我们可以认为 GMT 和 UTC 是一样的.
2.golang获取UTC时间=GMT时间
curtime := time.Now().UTC()
now := datetime.TimeToGMTString(curtime)
3.通过当前时间-8h来获取GMT时间
curtime := time.Now()
hh, _ := time.ParseDuration("-8h")
now := datetime.TimeToGMTString(curtime.Add(hh))
0 0
- GMT时间和UTC时间,当前时间
- UTC和GMT时间
- UTC和GMT时间
- UTC和GMT时间辨析
- UTC和GMT时间区别
- Java处理GMT时间和UTC时间
- Java处理GMT时间和UTC时间
- UTC GMT 时区 时间戳
- GMT CST UTC 时间一览
- UT,UTC,GMT时间区别
- Java时间:GMT以及UTC
- UTC与GMT时间介绍
- Java时间:GMT以及UTC
- 本地时间和GMT(UTC)时间的转换
- 本地时间和GMT(UTC)时间的转换(C#)
- 本地时间和GMT(UTC)时间的转换
- 时间:UTC时间、GMT时间、本地时间、Unix时间戳
- 时间:UTC时间、GMT时间、本地时间、Unix时间戳
- CUDA8.0+Ubuntu14.04+Caffe安装过程之CUDA安装教程
- SDWebImage源码解读 之SDWebImagePrefetcher
- LeetCode 110. Balanced Binary Tree
- (九)play之yabe项目【发表博文】
- 机器学习基础 第二章 预测算法
- GMT时间和UTC时间,当前时间
- PART III 硬件层 Chapter 5 计算部件
- JavaScript 朝着群星前进的动态背景
- SDWebImage源码解读之 分类
- React Native之StyleSheet样式表
- faster rcnn在win10+cuda7.5下的matlab配置
- C语言实验——分数序列 (sdut oj)
- android-文件操作
- ionic2的页面跳转