confusing datestr and datetime month and minutes formating
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Jan
il 7 Dic 2017
Modificato: Jan
il 8 Dic 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 Commento
Steven Lord
il 7 Dic 2017
Or read this Answer, in which I included a link to a post on Loren's blog where we answer that question.
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Dates and Time in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!