How can one write a condition datetime is not NaT?

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Dates and Time 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by