Game API Documentation
Time
Returns the time of the Game Jolt server.
URL Endpoint
/time/
Parameters
Name | Required? | Type | Description |
---|---|---|---|
game_id |
Yes | string |
The ID of your game. |
Returns
Name | Type | Description |
---|---|---|
success |
boolean |
Whether the request succeeded or failed. Example: true |
message |
string |
If the request was not successful, this contains the error message. Example: Unknown fatal error occurred. |
timestamp |
integer |
The UNIX time stamp (in seconds) representing the server's time. Example: 1394374272 |
timezone |
string |
The timezone of the server. Example: America/New_York |
year |
integer |
The current year. Example: 2015 |
month |
integer |
The current month. Example: 4 |
day |
integer |
The day of the month. Example: 28 |
hour |
integer |
The hour of the day. Example: 12 |
minute |
integer |
The minute of the hour. Example: 30 |
second |
integer |
The seconds of the minute. Example: 59 |
Syntax
/time/?game_id=xxxxx
Version history
Version | Description |
---|---|
1.2 | First implementation |