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!