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.
精彩评论