Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Latest commit

 

History

History
166 lines (135 loc) · 2.67 KB

time.md

File metadata and controls

166 lines (135 loc) · 2.67 KB

Server Time

GET /server/time.{format}

Description

This method returns time information about the server

Summary

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

Notes

  • Calling this method does not affect usage
  • Any value can be null

Sources

Parameters

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

Examples

GET /server/time.{format}

Response

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

Output

JSON

{
  "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
  }
}