confusing datestr and datetime month and minutes formating
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jan Siroky
le 7 Déc 2017
Réponse apportée : Peter Perkins
le 19 Déc 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 commentaires
Réponse acceptée
Jan
le 7 Déc 2017
Modifié(e) : Jan
le 8 Déc 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 commentaire
Steven Lord
le 7 Déc 2017
Or read this Answer, in which I included a link to a post on Loren's blog where we answer that question.
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!