Different symbolic identifiers for datestr and datetime

1 visualización (últimos 30 días)
ANetTow
ANetTow el 3 de Oct. de 2016
Respondida: Steven Lord el 3 de Oct. de 2016
In datestr , 'mm' indicates month while 'MM' indicates minutes. The opposite is true for datetime . Is this difference necessary? The resulting confusion when attempting to use a standard format string is uncalled for.

Respuestas (1)

Steven Lord
Steven Lord el 3 de Oct. de 2016
See the comment by Peter Perkins on this Answer.
The datetime format string uses the Unicode LDML standard where m refers to minute data and M to month. The datetick and datestr functions predate that standard and their convention uses m to represent month and M to represent minute.

Categorías

Más información sobre Data Preprocessing en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by