Salutations, This currently does not exist. You can file a Feature Request <https://code.google.com/p/googleappengine/issues/entry?template=Feature%20request> to add that functionality. In the mean time I would look at this link <https://cloud.google.com/appengine/docs/python/ndb/properties#Date_and_Time>, specifically:
auto_now_addSet property to current date/time when entity is created. auto_nowSet property to current date/time when entity is created and whenever it is updated. On Monday, July 13, 2015 at 1:28:25 AM UTC-4, A. Kong wrote: > > Hi all, > > I have checked the ndb.Model api and there seems to no attribute to hold > the creation timestamp of a data store entity. > > It is my use case: I want to be able to define a cron job which will sweep > all entities in the datastore. If an entity is created say 24hours ago, it > will be deleted. > > I can definitely add a 'creation_time' DateTimeProperty to my data model. > However it would be neat if ndb supports this already > > Cheers, Tony > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/1c721c69-3f0c-42ae-a97c-28a608c12a51%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.