フィルターのクリア

confusing datestr and datetime month and minutes formating

1 回表示 (過去 30 日間)
Jan Siroky
Jan Siroky 2017 年 12 月 7 日
回答済み: Peter Perkins 2017 年 12 月 19 日
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?

採用された回答

Jan
Jan 2017 年 12 月 7 日
編集済み: Jan 2017 年 12 月 8 日
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 件のコメント
Steven Lord
Steven Lord 2017 年 12 月 7 日
Or read this Answer, in which I included a link to a post on Loren's blog where we answer that question.

サインインしてコメントする。

その他の回答 (1 件)

Peter Perkins
Peter Perkins 2017 年 12 月 19 日
The formats for datetime are not just more consistent, they are an international standard.

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by