开发者

Creating an ISODate for MongoDB with PHP

I did a lot of preproce开发者_如何学JAVAssing with Python, and the pymongo driver uses ISODate for it's native date / time translation. Now PHP uses the MongoDate class which give {"sec":1296536400,"usec":0} as my "date". Is there anyway to force PHP to use an ISODate or vice-versa with Python (and pymongo)? I need compatible dates but the native formats don't seem to want to play nice.


MongoDate are in ISODate and in PHP. I guess it has changed since the question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜