How can one write a condition datetime is not NaT?

8 visualizaciones (últimos 30 días)
alpedhuez
alpedhuez el 19 de Ag. de 2021
Editada: Oleksa_Berruk el 19 de Jul. de 2023
How can one write a condition datetime is not NaT?

Respuesta aceptada

Steven Lord
Steven Lord el 19 de Ag. de 2021
Use isnat.
T = datetime('today')
T = datetime
19-Aug-2021
isnat(T)
ans = logical
0

Más respuestas (1)

Oleksa_Berruk
Oleksa_Berruk el 19 de Jul. de 2023
Editada: Oleksa_Berruk el 19 de Jul. de 2023
https://www.mathworks.com/help/matlab/ref/datetime.isnat.html. Thank you.
Thank you a bunch!

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by