tf = isnat(t)
| Parameter | Description |
|---|---|
| inputs | A datetime array. |
| Parameter | Description |
|---|---|
| output | A logical array with true where datetime serial values are NaN. |
Test datetime values for not-a-time elements.
isnat rejects non-datetime input. It is the datetime-specific missing-value test and preserves the shape of the datetime data.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
t = [datetime(2024,1,1), NaT]
isnat(t)
| Version | Description |
|---|---|
| 2.0.0 | initial version |