SUMMARY It would be nice to add option or remove PM and AM in 12-hour mode from digital clock widget. This practiced in phone UIs. It will save space. OBSERVED RESULT e.g. 10:09 PM EXPECTED RESULT e.g. 10:09 SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.4.2 KDE Frameworks Version: 6.15.0 Qt Version: 6.9.1 Graphics Platform: Wayland
You can. See setting "Time Display"
(In reply to David Edmundson from comment #1) > You can. > > See setting "Time Display" Thanks for reply. you can't do in 12-hour mode. in prior example observed result is either 22:09 or 10:09 PM.
Confirmed that with 12H time format, it's not possible to hide AM/PM without changing the regional settings. It would be more convenient for this use case to have a toggle in the Digital Clock settings.
I'm using Lubuntu(LXQT), but maybe the same solution can be applied here? If the Supported HTML Subset: https://doc.qt.io/qt-6/richtext-html-subset.html is allowed as part of the formatting, the tags can be used in an unintended way, to hide the expression results. For example I use the string <'h2' a>h:mm -- where the header tag merely boldens/enlarges the font. Other elements could be used as well. The attribute a, is recognized as the am/pm trigger and successfully adjusts the hour value, but ignores the am/pm display since it's a meaningless attribute.