How can one write a condition datetime is not NaT?

조회 수: 7 (최근 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 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