Documentation

GetTime

Retrieves the current server time

Request Details

This query retrieves the current time from one of the servers in PlayFab. Please note that due to clock drift between servers, there is a potential variance of up to 5 seconds.

GetTimeRequest
Request Properties
POST https://{{TitleID}}.playfabapi.com/Client/GetTime
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
{}
        

Response Details

Time is always returned as Coordinated Universal Time (UTC).

GetTimeResult
Result Properties
Time (required) DateTime

Current server time when the request was received, in UTC

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "Time": "2016-09-30T15:00:00Z"
  }
}

Authentication

SessionTicket

Possible Error Codes

Name Code
PublisherNotSet 1122