SelectMono-for-Linux Misc API Reference for Realtime Apps

This function will return a 17 digit precision Unix epoch.
 
Timetoken
The timetoken is constructed using the following algorithm:
timetoken = (Unix epoch time in seconds) * 10000000
Example of creating a timetoken for a specific time and date
08/19/2013 @ 9:20pm in UTC = 1376961606
timetoken = 1376961606 * 10000000
timetoken = 13769616060000000
To fetch Time you can use the following method(s) in Mono for Linux SDK
  1. ParameterTypeRequiredDescription
    userCallbackCallback Method of Type objectYesThis callback is called on receiving a message from the channel.
    errorCallbackCallback Method of Type PubnubClientError YesThis callback is called on an error event.
pubnub.Time<string>(
    DisplayReturnMessage,
    DisplayErrorMessage
);
void DisplayReturnMessage(string result)
{
    Console.WriteLine("TIME CALLBACK");
    Console.WriteLine(result);
}
void DisplayErrorMessage(PubnubClientError pubnubError)
{
    Console.WriteLine(pubnubError.StatusCode);
}
The Time function returns a string timetoken in the following format:

13769501243685161
EndPendingRequests frees up the threads and allows for clean exit.
  1. EndPendingRequests()
pubnub.EndPendingRequests();
pubnub = null;
None