We’ve migrated our documentation to a new site, which means some URLs have changed.
Audience

/public/date

Returns the current date and time formatted as an ISO 8601 string. The result is compatible with the date parameter in the authentication header.

The user does not need to be authenticated.

Request

No request parameters are required.

Response

The response object has the following fields:

Name

Type

Description

date

String (Date)

ISO 8601 date time representing the current time.

Examples

Bash
$ python cx.py /public/date
{
 "date":"2012-10-26T10:34:33.613Z"
}
Bash
$ curl -D - https://api.cxense.com/public/date
HTTP/1.1 200 OK
Server: nginx/1.2.0
Date: Fri, 26 Oct 2012 09:45:37 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 35
Connection: keep-alive
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
X-Content-Type-Options: nosniff

{"date":"2012-10-26T09:45:37.876Z"}

Last updated: