tf = isdatetime(A)
| Parameter | Description |
|---|---|
| inputs | Any Nelson value. |
| Parameter | Description |
|---|---|
| output | A logical scalar. |
Test whether an input is a datetime array.
Use isdatetime to branch on datetime support before calling datetime-specific functions such as datenum, dateshift, tzoffset, or isnat.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
isdatetime(datetime(2024,1,1))
isdatetime(seconds(1))
| Version | Description |
|---|---|
| 2.0.0 | initial version |