I am trying to display date and time including seconds BUT formatted according to user's locale settings. So if an action happened on the 5th of March 2020 at 14:47:51, in US it should be displayed as 03/05/2020 14:47:51 while in UK it would be 05/03/2020 14:47:51, in Poland 05.03.2020, 14:47:51, in Czechia 5.3.2020 14:47:51 etc.
I am able to display it without seconds by:
DateUtils.formatDateTime(
context,
event.time,
DateUtils.FORMAT_24HOUR or DateUtils.FORMAT_SHOW_TIME or DateUtils.FORMAT_SHOW_YEAR or DateUtils.FORMAT_SHOW_DATE or DateUtils.FORMAT_NUMERIC_DATE
)
But there is no constant to display seconds.
Any ideas, please?