Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在の TimeZone カスタム ID (X が 1 ~ 23 の「GMT+X」の形式) を表示する必要があります。次の手順を試してみましたが、成功しませんでした:
TimeZone.getDefault().getID()
TimeZone.getDefault().getDisplayName(true, TimeZone.SHORT)
どうすればできますか (例: "GMT+2")?
前もって感謝します〜Mounir