前人未踏の領域へ Androidアプリ開発編

Androidアプリ開発に関する調査メモ置き場。古い記事にはアプリ以外も含まれます。

Dateformatのフォーマットキャラクタについて

Dateformatのフォーマットで利用できるキャラクタはバージョンにより異なる。

The format methods in this class implement a subset of Unicode UTS #35 patterns. The subset currently supported by this class includes the following format characters: acdEHhLKkLMmsyz. Up to API level 17, only adEhkMmszy were supported. Note that this class incorrectly implements k as if it were H for backwards compatibility.

v18以降 acdEHhLKkLMmsyz
v17以前 adEhkMmszy