isduration
Test whether an input is a duration array.
📝Syntax
tf = isduration(A)
📥Input Arguments
Parameter Description
inputs Any Nelson value.
📤Output Arguments
Parameter Description
output A logical scalar.
📄Description

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.

💡Examples
Basic usage.
isduration(seconds(10))
isduration(datetime(2024,1,1))
🔗See Also
datetimeduration
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub