{"__v":0,"_id":"5845a4aa9f6fbb1b0043083b","category":{"version":"5845a4a89f6fbb1b004307b7","project":"54d3007669578e0d002730c9","_id":"5845a4a89f6fbb1b004307be","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-30T07:08:52.789Z","from_sync":false,"order":6,"slug":"domains","title":"Domains"},"parentDoc":null,"project":"54d3007669578e0d002730c9","user":"55bf6cdcad601c2b00762d13","version":{"__v":1,"_id":"5845a4a89f6fbb1b004307b7","project":"54d3007669578e0d002730c9","createdAt":"2016-12-05T17:32:24.708Z","releaseDate":"2016-12-05T17:32:24.708Z","categories":["5845a4a89f6fbb1b004307b8","5845a4a89f6fbb1b004307b9","5845a4a89f6fbb1b004307ba","5845a4a89f6fbb1b004307bb","5845a4a89f6fbb1b004307bc","5845a4a89f6fbb1b004307bd","5845a4a89f6fbb1b004307be","5845a4a89f6fbb1b004307bf","5845a4a89f6fbb1b004307c0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"25.0.0","version":"25"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-09T03:11:26.577Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":33,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Domains are being deprecated\",\n  \"body\": \"Domains are being deprecated. If you're currently using domains, please consider using our new [Prebuilt Agents](https://docs.api.ai/docs/prebuilt-agents).\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"This domain is supported in the following languages:\\n* English\"\n}\n[/block]\n* [Format: Units](#format-units)\n* [Format: Time](#format-time)\n* [Format: Date](#format-date)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Format: Units\"\n}\n[/block]\n## Action\n\nName| Description  \n---|---  \nformats.units| Requests to change formats for units  \n  \n## Data\n\nName| Parent| Data type| Required / Optional| Description| Request examples  \n---|---|---|---|---|---  \nformat| _data_| string| optional| Defines the system to use. Available values: _metric_, _imperial_| Use metric system. (format=metric)  \nrequest_type| _data_| string| optional| Defines the measures to change. Available values: _distance_, _temperature_| Change temperature format. (request_type=temperature)  \nunits| _data_| string| optional| Defines the units to use. Available values: _km_, _mi_, _celsius_, _fahrenheit_, _kelvin,  fc (if both units is requested)_| Tell distance in miles. (units=mi) <br> Use both celsius and fahrenheit (units=fc) \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Format: Time\"\n}\n[/block]\n## Action\n\nName| Description  \n---|---  \nformats.time| Requests to change formats for time  \n  \n## Data\n\nName| Parent| Data type| Required / Optional| Description| Request examples  \n---|---|---|---|---|---  \nformat| _data_| string| optional| Defines the format to use. Available values: _12_, _24, military_| Time in 24-hour format. (format=24) <br> Tell time in military format. (format=military) \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Format: Date\"\n}\n[/block]\n## Action\n\nName| Description  \n---|---  \nformats.date| Requests to change formats for date  \n  \n## Data\n\nName| Parent| Data type| Required / Optional| Description| Request examples  \n---|---|---|---|---|---  \nformat| _data_| string| optional| Defines the system to use. Available values: _big endian_, _middle endian_, _little endian_| Change date format to middle endian. (format=middle endian)  \nfirst_day| _data_| string| optional| Defines the first day of the week. Available values: _MO, TU, WE, TH, FR, SA, SU_| Begin week from Monday. (first_day=MO)  \nrequest_type| _data_| string| optional| Defines what to change. Available values: _week start_| Begin week from a different day. (request_type=week start)","excerpt":"","slug":"units-and-formats","type":"basic","title":"Units and Formats"}
[block:callout] { "type": "warning", "title": "Domains are being deprecated", "body": "Domains are being deprecated. If you're currently using domains, please consider using our new [Prebuilt Agents](https://docs.api.ai/docs/prebuilt-agents)." } [/block] [block:callout] { "type": "info", "body": "This domain is supported in the following languages:\n* English" } [/block] * [Format: Units](#format-units) * [Format: Time](#format-time) * [Format: Date](#format-date) [block:api-header] { "type": "basic", "title": "Format: Units" } [/block] ## Action Name| Description ---|--- formats.units| Requests to change formats for units ## Data Name| Parent| Data type| Required / Optional| Description| Request examples ---|---|---|---|---|--- format| _data_| string| optional| Defines the system to use. Available values: _metric_, _imperial_| Use metric system. (format=metric) request_type| _data_| string| optional| Defines the measures to change. Available values: _distance_, _temperature_| Change temperature format. (request_type=temperature) units| _data_| string| optional| Defines the units to use. Available values: _km_, _mi_, _celsius_, _fahrenheit_, _kelvin,  fc (if both units is requested)_| Tell distance in miles. (units=mi) <br> Use both celsius and fahrenheit (units=fc) [block:api-header] { "type": "basic", "title": "Format: Time" } [/block] ## Action Name| Description ---|--- formats.time| Requests to change formats for time ## Data Name| Parent| Data type| Required / Optional| Description| Request examples ---|---|---|---|---|--- format| _data_| string| optional| Defines the format to use. Available values: _12_, _24, military_| Time in 24-hour format. (format=24) <br> Tell time in military format. (format=military) [block:api-header] { "type": "basic", "title": "Format: Date" } [/block] ## Action Name| Description ---|--- formats.date| Requests to change formats for date ## Data Name| Parent| Data type| Required / Optional| Description| Request examples ---|---|---|---|---|--- format| _data_| string| optional| Defines the system to use. Available values: _big endian_, _middle endian_, _little endian_| Change date format to middle endian. (format=middle endian) first_day| _data_| string| optional| Defines the first day of the week. Available values: _MO, TU, WE, TH, FR, SA, SU_| Begin week from Monday. (first_day=MO) request_type| _data_| string| optional| Defines what to change. Available values: _week start_| Begin week from a different day. (request_type=week start)