相信大家都知道UTC和GMT,那么CST是什么?
答:Central Standard Time(中部标准时间) CST 详细请见链接 http://www.timeanddate.com/library/abbreviations/timezones/na/cst.html
GMT,UTC,CST都是时区信息
GMT和UTC都是0时区的时间
如果转换成本地时间,需要进行时间转换并加上时区如
00:00 GMT相当于08:00 +0800
//全局函数
Date
//Date 类的静态方法
Date.parse
Date.UTC
//Date 对象的建立方法
new Date()
new Date(毫秒数)
new Date(标准时间格式字符串)
new Date(年, 月, 日, 时, 分, 秒, 毫秒)
//Date 对象的更多方法
getFullYear (getUTCFullYear)
getMonth (getUTCMonth)