confusing datestr and datetime month and minutes formating
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jan Siroky
am 7 Dez. 2017
Beantwortet: Peter Perkins
am 19 Dez. 2017
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 Kommentare
Akzeptierte Antwort
Jan
am 7 Dez. 2017
Bearbeitet: Jan
am 8 Dez. 2017
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 Kommentar
Steven Lord
am 7 Dez. 2017
Or read this Answer, in which I included a link to a post on Loren's blog where we answer that question.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!