How can one write a condition datetime is not NaT?

1 visualizzazione (ultimi 30 giorni)
How can one write a condition datetime is not NaT?

Risposta accettata

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

Più risposte (1)

Oleksa_Berruk
Oleksa_Berruk il 19 Lug 2023
Modificato: Oleksa_Berruk il 19 Lug 2023
https://www.mathworks.com/help/matlab/ref/datetime.isnat.html. Thank you.
Thank you a bunch!

Categorie

Scopri di più su Dates and Time in Help Center e File Exchange

Tag

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by