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?

采纳的回答

Jan
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 个)

Peter Perkins
Peter Perkins 2017-12-19
The formats for datetime are not just more consistent, they are an international standard.

类别

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