Josh K
Josh K

Reputation: 28893

Creating an ISODate for MongoDB with PHP

I did a lot of preprocessing 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.

Upvotes: 1

Views: 3112

Answers (1)

karlcow
karlcow

Reputation: 6972

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

Upvotes: 2

Related Questions