Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.0.0 - English


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

  • NaT — Not a Time function used to create empty datetime
  • datetime — create points in time

History

VersionDescription
2024.0.0 Introduction in Scilab.
Report an issue
<< hours Time and Date NaT >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 24 11:13:10 CEST 2024