confusing datestr and datetime month and minutes formating
2 次查看(过去 30 天)
显示 更早的评论
In the function datestr, identifier for month is 'mm' and identifier for minutes is 'MM'.
However, in the function datetime is it different. Identifier for month is 'MM' and identifier for minutes is 'mm'.
Why?
0 个评论
采纳的回答
Jan
2017-12-7
编辑:Jan
2017-12-8
MathWorks tried to make it more consistent in the new datetime objects. [EDITED] See the link to Loren's blog posted by Steven Lord.
1 个评论
Steven Lord
2017-12-7
Or read this Answer, in which I included a link to a post on Loren's blog where we answer that question.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!