confusing datestr and datetime month and minutes formating
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jan Siroky
el 7 de Dic. de 2017
Respondida: Peter Perkins
el 19 de Dic. de 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 comentarios
Respuesta aceptada
Jan
el 7 de Dic. de 2017
Editada: Jan
el 8 de Dic. de 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 comentario
Steven Lord
el 7 de Dic. de 2017
Or read this Answer, in which I included a link to a post on Loren's blog where we answer that question.
Más respuestas (1)
Ver también
Categorías
Más información sobre Dates and Time en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!