开发者

Creating an ISODate for MongoDB with PHP

开发者 https://www.devze.com 2023-02-12 11:54 出处:网络
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

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

精彩评论

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