时间对象常用

 1      月份取值:January、February、March、April、May、June、July、August、September、October、November、December
 2      时间转换公式: 
 3      天:Math.floor(t/86400)
 4      时:Math.floor(t%86400/3600)
 5      分:Math.floor(t%86400%3600/60)
 6      秒:t%60
 7      获取时间对象:new Date()
 8      getFullYear
 9      getMonth
10      getDate
11      getDay
12      getHours
13      getMinutes
14      getSeconds
15      时间戳:new Date().getTime()-返回从1970年1月1日到现在的毫秒数(UTC时间标准时间)
原文地址:https://www.cnblogs.com/wanqiu/p/4453589.html