Compare datetime-values to equality
显示 更早的评论
Hey guys!
It seems like a really dumb question, but I haven't found a solution yet: How do I compare datetime values to equality? '==' does not work.
Kind regards, Spacey
回答(1 个)
Thomas Koelen
2015-4-9
t1 = datetime(2013,1,13,0,0,0);
t2 = datetime(2013,1,13,11,0,0);
tf = isequal(t1,t2)
tf=
0
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!