필터 지우기
필터 지우기

DateTime equal but report not equal

조회 수: 2 (최근 30일)
JAY CAMERON
JAY CAMERON 2020년 7월 25일
답변: Star Strider 2020년 7월 25일
Time1=datetime('04:00:00','InputFormat',"HH:mm:ss");
Time2=datetime(0,0,0,4,0,0);
Time1~=Time2
ans =
logical
1

채택된 답변

Star Strider
Star Strider 2020년 7월 25일
They are not the same:
Time1=datetime('04:00:00','InputFormat',"HH:mm:ss")
Time2=datetime(0,0,0,4,0,0)
produces:
Time1 =
datetime
25-Jul-2020 04:00:00
and:
Time2 =
datetime
30-Nov--0001 04:00:00
.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by