javascript 的getTime()
在ruby里面的Time:Time is stored internally as the number of seconds and microseconds since the epoch, January 1, 1970 00:00 UTC在javascript里面我估计也是类似的,所以getTime本质上也是属于UTC(GMT)。gear的存储是sqlite,所以一个比较灵活的方式是将时间相关的东西都转换成整数(getTime)。然后在需要的时候进行格式化输出。
页:
[1]
