Duration Label
Periods of time
it's going to take DURATION
{
"days": 2,
"days_in_seconds": 172800,
"months": 0
"years": 0
}
two days to complete.
"days": 2,
"days_in_seconds": 172800,
"months": 0
"years": 0
}
Example Input
it's going to take two days to complete.
Example Output
{
"type":"number",
"skill":"numbers",
"name":"DURATION",
"value":"2 Days",
"data":{
"days":2,
"days_in_seconds":172800,
"months":0,
"years":0
},
"span_text":"two days",
"span":[
19,
27
],
"output_spans":[
{
"section":0,
"start":19,
"end":27
}
]
}
Additional Data
Name | Description | Example |
---|---|---|
days | Days component of the duration, expressed in fractional days value | 2.5 |
days_in_seconds | Duration expressed in whole seconds (e.g 3600 = 1 hour) | 216000 |
months | Months component of the duration | 1 |
years | Years component of the duration | 0 |
Updated 2 months ago