2012-04-29 39 views

回答

2

如果_id是UUID,然後前8個字節的是時間戳。 例如,您可以提取日期如下:

var date = new Date(parseInt(post._id.substring(0,8), 16) * 1000)