How can one write a condition datetime is not NaT?

1 回表示 (過去 30 日間)
alpedhuez
alpedhuez 2021 年 8 月 19 日
編集済み: Oleksa_Berruk 2023 年 7 月 19 日
How can one write a condition datetime is not NaT?

採用された回答

Steven Lord
Steven Lord 2021 年 8 月 19 日
Use isnat.
T = datetime('today')
T = datetime
19-Aug-2021
isnat(T)
ans = logical
0

その他の回答 (1 件)

Oleksa_Berruk
Oleksa_Berruk 2023 年 7 月 19 日
編集済み: Oleksa_Berruk 2023 年 7 月 19 日
https://www.mathworks.com/help/matlab/ref/datetime.isnat.html. Thank you.
Thank you a bunch!

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by