GET /server/time.{format}
This method returns time information about the srver
Name | Value | Name | Value |
Request Protocol | GET | Requires API Key | No |
Method ID | 1087 | Enabled | Yes |
Service Name | server | Service ID | 227 |
Information Steward | UW OpenData | Data Type | Language computed |
Update Frequency | Every request (live) | Cache Time | 0 seconds |
- Calling this method does not affect usage
- Any value can be
null
GET /server/time.{format}
Parameter | Type | Required | Description |
format | input | yes | The format of the output |
callback | filter | no | JSONP callback format |
Output Formats
- json
- xml
GET /server/time.{format}
- https://api.uwaterloo.ca/v2/server/time.json
- https://api.uwaterloo.ca/v2/server/time.xml
- https://api.uwaterloo.ca/v2/server/time.json?callback=myResponse
Field Name | Type | Value Description |
timestamp | integer | Current UNIX timestamp |
datetime | string | ISO8601 compatible current server timestamp |
timezone | string | Current server timezone |
key_reset_time | integer | UNIX timestamp of when the api call quota will reset |
Any value can be null
{
"meta":{
"requests":86,
"timestamp":1381935632,
"status":200,
"message":"Request successful",
"method_id":1087,
"version":2.07,
"method":{
}
},
"data":{
"timestamp":1381935632,
"datetime":"2013-10-16T11:00:32-04:00",
"timezone":"EDT",
"key_reset_time":1384578000
}
}