Next: , Previous: , Up: API Alphabetically   [Contents]


8.2.42 NaT

Function: out = NaT ()
Function: out = NaT (sz)

“Not-a-Time”. Creates NaT-valued arrays.

Constructs a new datetime array of all NaT values of the given size. If no input sz is given, the result is a scalar NaT.

NaT is the datetime equivalent of NaN. It represents a missing or invalid value. NaT values never compare equal to, greater than, or less than any value, including other NaTs. Doing arithmetic with a NaT and any other value results in a NaT.

NaT currently cannot create NaT arrays of type localdate. To do that, use localdate.NaT instead.