Retrieving Timestamp from container

0 views
Skip to first unread message

Samuka

unread,
Jul 2, 2008, 5:34:06 PM7/2/08
to OpenSocial - OpenSocial Application Development
Hi Everybody.
I'm developing an application that relies strongly on timestamp
values. By now, the app is retrieving a timestamp value from an
external php file in my backend server, through makerequest. However,
it slows considerably the whole system, such simple query. I can't
though rely on javascript date functions, as it would retrieve the
user's configured timestamp. Is there any way to retrieve the
container's-side timestamp?


thanks
Samuel Brandão

Arne Roomann-Kurrik (Google)

unread,
Jul 9, 2008, 4:26:59 PM7/9/08
to OpenSocial - OpenSocial Application Development
There's not really a way to do this without fetching the timestamp
from a remote server. How does fetching the timestamp from your own
server slow down the system? You could just have the following in a
file called timestamp.php:

<? echo time(); ?>

And use makeRequest to get this value, which should be very little
overhead for an app. How often are you fetching this timestamp?

~Arne
Reply all
Reply to author
Forward
0 new messages