t = NaT()
t = NaT(n)
t = NaT(m, n)
t = NaT(..., 'Format', fmt)
t = NaT(..., 'TimeZone', tz)
| Parameter | Description |
|---|---|
| inputs | Optional size arguments and optional Format and TimeZone name-value pairs. |
| Parameter | Description |
|---|---|
| output | A datetime array whose serial values are NaN. |
Create not-a-time datetime values.
NaT is the missing value marker for datetime arrays. isnat returns true for these elements, and display functions show them as NaT.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
t = NaT(2, 3)
isnat(t)
| Version | Description |
|---|---|
| 2.0.0 | initial version |