config option for time format

This commit is contained in:
end-4
2025-06-05 13:27:38 +02:00
parent 1e24608e2b
commit bef0739471
3 changed files with 10 additions and 6 deletions
+3 -5
View File
@@ -9,11 +9,9 @@ pragma ComponentBehavior: Bound
* A nice wrapper for date and time strings.
*/
Singleton {
property string time: Qt.formatDateTime(clock.date, "hh:mm")
property string date: Qt.formatDateTime(clock.date, "dddd, dd/MM")
property string day: Qt.formatDateTime(clock.date, "dd")
property string month: Qt.formatDateTime(clock.date, "MMMM")
property string year: Qt.formatDateTime(clock.date, "yyyy")
property string time: Qt.formatDateTime(clock.date, ConfigOptions?.time.format ?? "hh:mm")
property string date: Qt.formatDateTime(clock.date, ConfigOptions?.time.dateFormat ?? "dddd, dd/MM")
property string collapsedCalendarFormat: Qt.formatDateTime(clock.date, "dd MMMM yyyy")
property string uptime: "0h, 0m"
SystemClock {