This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Digital Clock Settings

Tags: None
(comma "," separated)
ex-Xubuntu
Registered Member
Posts
5
Karma
0

Digital Clock Settings

Tue May 09, 2017 4:19 am
Hi

New to KDE neon and loving it!

One question: I like to have the long date format showing with the time. However, the date appears under the time. Anyway of getting it to appear next to the time?

Cheers
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: Digital Clock Settings  Topic is solved

Tue May 09, 2017 8:47 am
ex-Xubuntu wrote:One question: I like to have the long date format showing with the time. However, the date appears under the time. Anyway of getting it to appear next to the time?


No & Yes

No - I think, that there is no setting to put the time and the date to same line with the KDE digital clock.

Yes - you could edit the KDE digital clock qml scripts and put the time and the date to the same line.

There could be third party clocks at the KDE Store: https://store.kde.org/browse/ord/latest/


Earlier: My Digital Clock - viewtopic.php?f=17&t=134970&p=361132#p361132

Now, with the plasma 5.9.5:

Image

Changing ../plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml line 485:
Code: Select all
return Qt.formatTime(currentTime, main.timeFormat);

to
Code: Select all
return Qt.formatTime(currentTime, main.timeFormat) + ' ' + Qt.formatDate(main.currentTime, main.dateFormat);


Restarting the plasmashell and the digital clock is showing time and date on one line:
Image

Note !
As the digital clock is calculating the space needed from the font etc. settings you will need spacers.
The digital clock settings:
Show date - off !
Date format: Long Date.
Image
ex-Xubuntu
Registered Member
Posts
5
Karma
0

Re: Digital Clock Settings

Wed May 10, 2017 6:25 am
Thanks
psschwei
Registered Member
Posts
1
Karma
0

Re: Digital Clock Settings

Mon Nov 08, 2021 4:09 pm
As of Plasma 5.22, under "Configure Digital Clock > Appearance" there is an option to show date "always beside time".

(Sorry for bumping an old thread, but this was the top search result when I was trying to find an answer to this question, so hope it helps someone else)


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]