NaT
Create not-a-time datetime values.
📝Syntax
t = NaT()
t = NaT(n)
t = NaT(m, n)
t = NaT(..., 'Format', fmt)
t = NaT(..., 'TimeZone', tz)
📥Input Arguments
Parameter Description
inputs Optional size arguments and optional Format and TimeZone name-value pairs.
📤Output Arguments
Parameter Description
output A datetime array whose serial values are NaN.
📄Description

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.

💡Examples
Basic usage.
t = NaT(2, 3)
isnat(t)
🔗See Also
datetimeduration
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub