cinder-specs/specs/api/v2/date_and_time_format.rst
Sean McGinnis 5016627f04 Remove unit testing
Spec repos do not have code to unit test. The gate job definition for
the py27 and py35 jobs skip if there doc only changes, which is all we
will ever have in the specs repo. Therefore the one "test" we had will
never be run.

We were using this unit test as a check for formatting issues with the
rst files. This was done before doc8 was available. Now that we can use
doc8, we should just switch to running that as part of the pep8 jobs.

Also fixes all the errors caught by doc8 that were not caught by our
unit test check.

Change-Id: Ida20764edde3a07c89703d82b41958c96548b239
2017-11-17 00:21:26 +00:00

814 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