added string inforamtion to duration type conversion function

pull/667/head
Scott Anderson 2019-12-10 15:02:22 -07:00
parent 80f0a1d069
commit b74a18856c
2 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,8 @@ The value to convert.
_**Data type:** Integer | String | Uinteger_
{{% note %}}
`duration()` assumes numeric input values are **nanoseconds**.
`duration()` assumes **numeric** input values are **nanoseconds**.
**String** input values must use [duration literal representation](#/v2.0/reference/flux/language/lexical-elements/#duration-literals).
{{% /note %}}
## Examples

View File

@ -26,7 +26,8 @@ toDuration()
_**Supported data types:** Integer | String | Uinteger_
{{% note %}}
`toDuration()` assumes numeric input values are **nanoseconds**.
`duration()` assumes **numeric** input values are **nanoseconds**.
**String** input values must use [duration literal representation](#/v2.0/reference/flux/language/lexical-elements/#duration-literals).
{{% /note %}}
{{% note %}}