<< hours Data e Hora NaT >>

Scilab Help >> Data e Hora > isnat

isnat

check if a variable contains "Not a Time" values

Syntax

t = isnat(x)

Arguments

x

datetime matrix

t

boolean matrix of the same size as x

Description

t = isnat(x) returns a boolean matrix of the same size as x, where t(i) is %t when x(i) is NaT, and %f otherwise.

Examples

isnat(NaT())
isnat(NaT(1))
dt = NaT(3, 3)
isnat(dt)
dt(1:4:9) = datetime(2022, 1, 1);
isnat(dt)

See also

History

VersionDescription
2024.0.0 Introduction in Scilab.

Report an issue
<< hours Data e Hora NaT >>