Date Label

Absolute or relative dates or periods.

I bought this land DATE
{
   "date_time": "2012-08-17T00:00",
   "timezone": "US/Eastern",
   "precision": "DAY"
}
ten years ago
 
 
 

Example Input

I bought this land ten years ago

Example Output

{
   "type":"number",
   "skill":"numbers",
   "name":"DATE",
   "value":"2012-08-24",
   "data":{
      "date_time":"2012-08-24T00:00",
      "timezone":null,
      "precision":"DAY"
   },
   "span_text":"ten years ago",
   "span":[
      19,
      32
   ],
   "output_spans":[
      {
         "section":0,
         "start":19,
         "end":32
      }
   ]
}

Additional Data

NameDescriptionExample
valueHuman readable output according to the precision level2012-08-17 10:00
date_timeMachine-readable full date-time string in yyyy-mm-ddTHH:MM format2012-08-17T10:00
timezoneThe indicated timezone, null if not presentUS/Pacific
precisionThe date/time precision is indicated. One of YEAR, MONTH, DAY, TIMEDAY