forio Toggle navigation

Time API

The Epicenter Time API allows you to retrieve the current server time. For example, this may be useful if you are trying to coordinate in a multiplayer world.

The Time API supports the following methods:

GET: Retrieving the Server Time


Method: GET

URI: /v2/time

Headers: None.

Request Body: None.

Return Status:

  • 200 (successful response)

Return Body: The current server time, in ISO 8601 format.


Example:

curl -G \
    'https://api.forio.com/v2/time/'

Example Response:

2015-12-21T14:05:07.561-08:00