Python, Mongodb and timestamp -
this question has answer here:
- create isodate pymongo 3 answers
i 'm doing google api flights python, , put timestamp , , saw json api generates large, serious use mongodb database , store. i'm little lost place timestamp @ mongodb , make these data stored there. give me quick explanation , " stepping stones " ( shall begin , etc.) ?
thank you: d
some quick googling reveals can use python's datetime
module. take at post.
also here's example pymongo tutorial:
import datetime post = {"author": "mike", "text": "my first blog post!", "tags": ["mongodb", "python", "pymongo"], "date": datetime.datetime.utcnow()} posts = db.posts posts.insert(post)
Comments
Post a Comment