You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
timojaask edited this page Jun 29, 2014
·
3 revisions
get_servertime
Get the current server time. Can be useful for time synchronization.
URL: http://whispr.outi.me/api/get_servertime
Method: Get
Arguments: None
Return value: Returns Unix timestamp for the current server time
Examples
##C#
varclient=newHttpClient();// Create the request URLvaruri=newUri("http://whispr.outi.me/api/get_servertime");// Send request and get a result stringvarunixTimeStampStr=awaitclient.GetStringAsync(uri);// Parse the result string into a Unix time stamp (use try/catch)varserverTimeStamp=long.Parse(unixTimeStampStr);