Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To display the current week number with current time #367

Open
testitquickly opened this issue Oct 22, 2024 · 1 comment
Open

To display the current week number with current time #367

testitquickly opened this issue Oct 22, 2024 · 1 comment

Comments

@testitquickly
Copy link

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
Copy link
Owner

Zren commented Oct 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants