Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请帮我弄清楚如何用 ruby 解析这个奇怪的日期时间字符串:
"TimeStampUtc": "\/Date(1328696521000+0000)\/
"Date"=>"/Date(1365703200000+0100)/
带有尾随的 0,它可能是 javascript 样式的时间戳:自 1970 年 1 月 1 日以来的毫秒数:
1365703200000/1000 = 136570320 -> Apr 11/2013