Zren/plasma-applet-eventcalendar

To display the current week number with current time

testitquickly opened this issue · 1 comments

I need to see the current week number with date and time.

I set the day and time like this: 22 oct 12:06 (done with d MMM HH:mm).

and I want to set it like this: : 22 oct 12:06 (43)

From the list of linux-unix-formatting-dates-for-display I know that

%U 	week number of year, with Sunday as first day of week (00..53)
%V 	ISO week number, with Monday as first day of week (01..53)

But in Event Calendar widget this U and V do nothing.

Are there any chances to have this option enabled?

Thanks.

Zren commented

https://doc.qt.io/qt-6/qml-qtqml-qt.html#formatDateTime-method

Doesn't look like it supports that in the QML formatDateTime().

I know the html-clock widget adds a bunch of extra format variables, so you might consider that widget if you really need it.

https://github.com/MarcinOrlowski/html-clock-plasmoid/blob/master/src/contents/js/DateTimeFormatter.js#L121