测试ntp服务器
# 测试ntp服务器
Path:
/api/ntptest?ntpServer=*
Method: POST
Content-type: text/plain
接口描述: 测试ntp服务器是否可用
请求示例
http://192.168.42.129/api/ntptest?ntpServer=ntp1.aliyun.com
响应参数
名称 | 类型 | 示例 | 描述 |
---|---|---|---|
ntp.timestamp.now | long | -1 | 当前ntp服务器获取的时间戳,-1表示无法获取 |
ntp.date.now | String | 0 | 当前ntp服务器获取的格式化时间,"0000-00-00 00:00:00"表示无法获取 |
响应示例
{
"ntp.timestamp.now": -1,
"ntp.date.now": "0000-00-00 00:00:00"
}