How can one write a condition datetime is not NaT?

1 Ansicht (letzte 30 Tage)
alpedhuez
alpedhuez am 19 Aug. 2021
Bearbeitet: Oleksa_Berruk am 19 Jul. 2023
How can one write a condition datetime is not NaT?

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Tags

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by