Creating ISODate for MongoDB with PHP

I did a lot of preprocessing with Python, and the pymongo driver uses ISODate for its native date / time translation. Now PHP uses the MongoDate class , which gives {"sec":1296536400,"usec":0}as my "date". Is there a way to get PHP to use ISODate or vice versa with Python (and pymongo)? I need compatible dates, but the native formats do not seem to want to play well.

+1
source share
1 answer

MongoDate are both in ISODate and in PHP , I think this has changed after the question.

+2
source

All Articles