All GAE servers have GMT/UTC as there current time. The times across different servers may very a few seconds because they are distributed.
2009/8/20 herbie <[email protected]>: > > How do I calculate the elapsed time since model instance was first > stored in the datastore. My model has a property like this: > > date_added = db.DateTimeProperty(auto_now_add=True) > > So according to the docs, date_added is set to the current time the > first time its put(). But what is the 'current time'? Is it the just > the system time of whatever server the app instance is running on? > > Or is there a synchronised datastore 'current time' so that something > like elapsed_time = 'current time' - date_added will always return > the correct value irrespective of whatever server it is running on? > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
