added string inforamtion to duration type conversion function
parent
80f0a1d069
commit
b74a18856c
|
@ -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
|
||||
|
|
|
@ -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 %}}
|
||||
|
|
Loading…
Reference in New Issue