zoukankan      html  css  js  c++  java
  • GMT and CST

    GMT(Greenwich Mean Time) 代表格林尼治标准时间


    而CST却同时可以代表如下 4 个不同的时区:

        Central Standard Time (USA) UT-6:00
        Central Standard Time (Australia) UT+9:30
        China Standard Time UT+8:00
        Cuba Standard Time UT-4:00


    可见,CST可以同时表示美国,澳大利亚,中国,古巴四个国家的标准时间。

    客户端 JavaScript 则默认采用的是美国的中部时间。

    所以将 Fri Aug 28 09:37:46 CST 2009 加上 6 个小时,再加上 8 个小时,就等于 Fri Aug 28 2009 23:37:46 GMT+0800

    可见,在以后的编程中为了避免错误,还是不要使用CST时间,而尽量采用GMT时间。

    Excel date/time:

    http://office.microsoft.com/en-us/excel-help/calculate-the-difference-between-two-times-HP003056108.aspx

  • 相关阅读:
    iOS基础
    iOS基础 ----- 内存管理
    NSAttributedString 的一些基本用法
    node安装使用
    docker常用命令
    docker lnmp
    easy-wechat
    composer
    center7系统搭建lnmp
    xammp环境配置
  • 原文地址:https://www.cnblogs.com/emanlee/p/3771245.html
Copyright © 2011-2022 走看看