2015年1月14日 星期三

[MongoDB] ObjectId to Timestamp Converter

Test data (ObjectId): 54b37110f441a40ce4239497

Return (ISO Timestamp): 2015-01-12T07:00:32.000Z

* Note that _id stores the timestamp to second only, no millisecond value stored :(

http://steveridout.github.io/mongo-object-time/

沒有留言:

張貼留言

[夕陽感言] 系統的千瘡百孔

凡事都有兩面,有好處,自然有壞處;有得,自有失;沒有完美,總有它的限制。 沒有一個程式可以解決所有的問題,沒有一個系統沒有漏洞。它能到達「成熟」的階段,但它永不會完美。之後就是隨著年日總有「老化」的一天,或是世界進步了,或是已經maintain不到了……科技的日新月異,隨著pro...