Date and Time Format

Cloud Infrastructure Automation REST API uses the following date-time format in requests and responses. When composing a request that accepts a date-time value, format it according to these specifications.

Format

yyyy-MM-dd%20HH%3Amm%20%2BZZZZ

Specification

Format Character

Description

Example Values

yyyy

Year, four digits.

2014

MM

Month, two digits with a leading zero.

01 through 12

dd

Day of month, two digits with a leading zero.

01 through 31

HH

Hours (24-hour format).

00 through 24

mm

Minutes, two digits with a leading zero.

00 through 59

ZZZZ

Time zone code.

0300, 0400, etc.

%20

HTML code for space

 

%3A

HTML code for :

 

%2B

HTML code for +

 

Example

The following date, time and timezone 2018-01-01 21:00 +0300 should be rewritten in the Cloud Infrastructure Automation REST API request in the format as shown below:

2018-01-01%2021%3A00%20%2B0300

For example, the request for getting server history will look as below:

GET http://10.192.37.238:4465/paci/v1.0/of/1000001/ve/server-1000002-1/history/1970-01-01%2003%3A00%20%2B0300/2018-01-18%2008%3A00%20%2B0300