Python, Mongodb and timestamp -


this question has answer here:

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

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -