cinder-specs/specs/api/v2/date_and_time_format.rst
Anne Gentle d11c3fec58 Adds Block Storage v2 API specification information
Goal is to start maintaining API specs in the specs repos
for each project to eliminate maintenance of <project>-api repos.

Change-Id: Ife0721e831f7d5348cdc7b541c0b755a01bc23e9
2014-10-17 20:30:44 -05:00

815 B

Date and time format

Block Storage uses an ISO-8601 compliant date format for the display and consumption of date time values.

Example 2.3. DB service date and time format

yyyy-MM-dd'T'HH:mm:ss.SSSZ

May 19th, 2011 at 8:07:08 AM, GMT-5 has the following format:

2011-05-19T08:07:08-05:00

The following table describes the date time format codes:

Table 2.4. Date time format codes

Code Description

yyyy Four digit year

MM Two digit month

dd Two digit day of month

T Separator for date time

HH Two digit hour of day (00-23)

mm Two digit minutes of hour

ss Two digit seconds of the minute

SSS Three digit milliseconds of the second

Z RFC-822 timezone