zstackio / doc-ch

ZStack Chinese user manual
Apache License 2.0
12 stars 21 forks source link

[ZStack] GetCurrentTime API #72

Open winger007 opened 7 years ago

winger007 commented 7 years ago

描述

获取管理节点当前时间

API

org.zstack.header.managementnode.APIGetCurrentTimeMsg

举例(Example)

管理员可以使用GetCurrentTime来获取系统当前时间. 例如:

admin >>>GetCurrentTime

返回结果:

{
    "currentTime": {
        "MillionSeconds": 1478510223514,
        "Seconds": 1478510223
    },
    "success": true
}

其中,MillionSeconds是按照毫秒计算的时间戳,Seconds是按照秒计算的时间戳