CST 时区名为 CST 的时区是一个很混乱的时区,有四种含义: 美国中部时间 Central Standard Time (USA) UTC-05:00 / UTC-06:00 澳大利亚中部时间 Central Standard Time (Australia) UTC+09:30 中国标准时 China Standard Time UTC+08:00 古巴标准时 Cuba Standard Time UTC-04:00 美国从“3月11日”至“11月7日”实行夏令时,美国中部时间改为 UTC
时区简单理解 https://zh.wikipedia.org/wiki/%E6%97%B6%E5%8C%BA 上面的链接是时区的wiki说明,下面说说我记住的部分: GMT时区是格林威治标准时间,我把它理解为 “真实时间” UTC时区是根据GMT得来的“世界标准时间”,它的时间和GMT是相同的 CST可以指下列的时区: 澳洲中部时间,Central Standard Time (Australia)中部标准时区(北美洲),Central Standard Time (North America
第一步:查询服务器时间 [root@localhost ~]# timedatectl Local time: Sat 2018-03-31 01:11:46 UTC Universal time: Sat 2018-03-31 01:11:46 UTC RTC time: Sat 2018-03-31 01:11:36 Time zone: Universal (UTC, +0000) NTP enabled: yes NTP synchronized: yes RTC in local TZ
搭建两个虚拟环境,操作系统均是cents7. 环境A: 使用timedatectl命令查看时区为 Time zone: Asia/Shanghai (CST, +0800). 本地数据库时区(show timezone命令)为PRC,等价于cst. 环境B: 时区为America/New_York (EST, -0500),本地数据库时区为US/Eastern,等价于EST. 1. 先针对timestamp with time zone和timestamp without time zone两个