NaT
Not a Time function used to create empty datetime
Syntax
dt = NaT() dt = NaT(x) dt = NaT(m, n) dt = NaT(..., "OutputFormat", str)
Arguments
- x
scalar, vector, matrix
- m, n
scalars
- str
date format for display, string
- dt
datetime
Description
NaT() returns an empty datetime, i.e datetime("") returns a NaT. The NaT function can be used to allocate matrix of datetime.
NaT()
is equivalent to NaT(1,1)
and returns a NaT (datetime value).
NaT(
returns a NaT matrix with the same size as x
)x
.
NaT(
creates a m, n
)m x n
NaT matrix.
NaT(...,
creates a datetime matrix of NaT values where the display format is specified."OutputFormat", str
)
Examples
History
Version | Description |
2024.0.0 | Introduction in Scilab. |
Report an issue | ||
<< isnat | Time and Date | now >> |