Gettime

gettime

Returns the node time information

Result:
{                    (json object)
  "local" : n,       (numeric) The node local timestamp
  "offset" : n,      (numeric) The time offset gathered from the other nodes on the network
  "adjusted" : n     (numeric) The adjusted timestamp of this node
}

Examples:
> bitcoin-cli gettime 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "gettime", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/