tf = isduration(A)
| Parameter | Description |
|---|---|
| inputs | Any Nelson value. |
| Parameter | Description |
|---|---|
| output | A logical scalar. |
Test whether an input is a duration array.
Use isduration before converting elapsed time with seconds, minutes, hours, days, or years.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
isduration(seconds(10))
isduration(datetime(2024,1,1))
| Version | Description |
|---|---|
| 2.0.0 | initial version |