## 全球时间查询 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://img.kancloud.cn/eb/34/eb344ceb1b998b8e87ced1aa9eeeb01b_200x200.png) > 查询全球主要城市的时间。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/time/world ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | appCode| string|是|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | city| string | 是 | 城市 | ### 返回`data`参数 | 名称 | 类型 | 示例值 | 说明 | | --- | --- | --- | --- | | country | string | 中国 | 所在国家 | | city | string | 上海 | 城市 | | timeZone | string | GMT +8 | 时区 | | strtime | string | 2020-09-02 10:10:50 | 字符串时间 | | timestamp | int | 1598980240 | 时间戳 | | weeknum | string | 3 | 星期 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->timeWorld() ->withCity('上海') ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "country":"中国", "city":"上海", "timeZone":"GMT +8", "strtime":"2020-09-02 02:41:54", "timestamp":1598985714, "weeknum":"3" } ] } ~~~