How to get the Server Time?

Options
I need the sever time.But i cant know how to get it.

Comments

  • Hi @SunnyCat,

    by server time you mean the actual time or a time stamp? I guess getting the actual time is not possible. Getting an up to date server time stamp is possible by calling PhotonNetwork.FetchServerTimestamp();. Afterwards you can access this time stamp by using PhotonNetwork.ServerTimestamp. For more information please take a look at the API page.