我有一个变量叫
posts_object[i].updated_time
它始终是一个 utf 时间码。它似乎总是发送三个零太多。几个例子:
Unix Date
1339705666000 · 2012-06-14T20:27:46+0000
1280403912000 · 2010-07-29T11:45:12+0000
1338635118000 · 2012-06-02T11:05:18+0000
编码:
postobj.created=posts_object[i].updated_time.substring(0,10);
var sortvar= (posts_object[i].updated_time);
postobj.sort=Date.parse(sortvar);