DateTime equal but report not equal
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
JAY CAMERON
am 25 Jul. 2020
Beantwortet: Star Strider
am 25 Jul. 2020
Time1=datetime('04:00:00','InputFormat',"HH:mm:ss");
Time2=datetime(0,0,0,4,0,0);
Time1~=Time2
ans =
logical
1
0 Kommentare
Akzeptierte Antwort
Star Strider
am 25 Jul. 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!