Hi there,

What is the best way to produce a timestamp that is synchronized (more
or less, couple of seconds clock skew don't matter) among all running
instances of an app?

The problem I need to solve is the following:

In a mobile game, a user can use a certain boon, that is valid for 12
hours. I store a timestamp that reflect creation time + validity
period. This is then persisted to the datastore. Of course then I need
to check if this boon has expired by comparing current timestamp and
the "creation timestamp + validity". So far I've been using simply
"new Date()", but then I realized that this could very well differ if
the clocks are not synced. Any thoughts?

Cheers,
Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-java?hl=en.

Reply via email to