mirror of
https://github.com/adidas/api-guidelines.git
synced 2025-10-25 15:19:19 +00:00
Updates application/common-data-types.md
Auto commit by GitBook Editor
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
# Common Data Types
|
||||
|
||||
## Date and Time Format
|
||||
Date and Time **MUST** always conform to the [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format e.g. `2017-06-21T14:07:17Z` (date time) or `2017-06-21` (date), it **MUST** use the UTC (without time offsets).
|
||||
Date and Time **MUST** always conform to the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format e.g. `2017-06-21T14:07:17Z` (date time) or `2017-06-21` (date), it **MUST** use the UTC (without time offsets).
|
||||
|
||||
## Duration Format
|
||||
Duration format **MUST** conform to the [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) standard.
|
||||
Duration format **MUST** conform to the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) standard.
|
||||
|
||||
#### Example
|
||||
`P3Y6M4DT12H30M5S` represents a duration of "three years, six months, four days, twelve hours, thirty minutes, and five seconds".
|
||||
|
||||
## Time Interval Format
|
||||
Time Interval format **MUST** conform to the [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) standard.
|
||||
Time Interval format **MUST** conform to the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) standard e.g.: `2007-03-01T13:00:00Z/2008-05-11T15:30:00Z`.
|
||||
|
||||
## Standard Time Stamps
|
||||
Where applicable, a resource representation **SHOULD** contain the standard timestamps:
|
||||
@@ -30,11 +30,11 @@ Where applicable, a resource representation **SHOULD** contain the standard time
|
||||
}
|
||||
```
|
||||
|
||||
## Language Code Format
|
||||
Language codes **MUST** conform to the [ISO 639](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) e.g.: `en` for English.
|
||||
|
||||
## Country Code Format
|
||||
Country codes **MUST** conform to the [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) e.g.: `DE` for Germany.
|
||||
|
||||
## Language format
|
||||
|
||||
## Country format
|
||||
|
||||
## Currency format
|
||||
## Currency Format
|
||||
|
||||
|
||||
Reference in New Issue
Block a user