How can I determine whether a device is using 12 or 24-hour time format?

前端 未结 2 1211
你的背包
你的背包 2021-01-03 20:10

I want to know the current device time format.

means 24 hour/ 12 hour format .

Plz let me know how can I determine that.

Are there any API there to d

2条回答
  •  自闭症患者
    2021-01-03 20:49

    This may help you....

    The link of the answer source: https://developer.android.com/reference/android/text/format/DateFormat.html#is24HourFormat(android.content.Context)

提交回复
热议问题