Choose the date format for the clock applet

Forum rules
Before you post please read how to get help
Post Reply
jolexin
Level 1
Level 1
Posts: 11
Joined: Fri Jan 05, 2018 7:00 am

Choose the date format for the clock applet

Post by jolexin » Tue Jun 18, 2019 3:35 am

Bei Ubuntu Mate wusste ich wie, bei Mint Mate geht es scheinbar anders:

Das Uhr-Applet im Panel zeig Datum und Uhrzeit so: "Di, 18.Jun., 09:17"

Was ich haben will, ist: 2019-06-18 09:17 oder Di 2019-06-18 09:17 (wenn's geht)

Ich habe vergeblich mit Mate Tweak und dconf editor nach einer Einstellmöglichkeit gesucht.
- - -
Linux Mint 19 MATE 64bit XFCE

User avatar
ibbill
Level 4
Level 4
Posts: 301
Joined: Thu May 26, 2011 5:07 pm
Location: Canada

Re: Choose the date format for the clock applet

Post by ibbill » Tue Jun 18, 2019 8:45 am

At Ubuntu Mate I knew how, at Mint Mate it seems different: The watch applet in the panel shows date and time like this: "Di, 18 Jun., 09:17" What I want is: 2019-06-18 09:17 or Di 2019-06-18 09:17 (if it goes) I did in vain with Mate Tweak and dconf editor after a Adjustment option sought.

Hope this is what you mean. Not sure it is possible. Maybe someone else can help you.
Bill and so it goes
Mint Mate 19 64 bit
HP xw4600-workstation
NVIDIA Corporation G84GL [Quadro FX 1700] (rev a1)
4gb ram Dual core
Canada

jolexin
Level 1
Level 1
Posts: 11
Joined: Fri Jan 05, 2018 7:00 am

Re: Choose the date format for the clock applet

Post by jolexin » Tue Jun 18, 2019 1:14 pm

Maybe the date shown comes from a calendar applet. In that case the question is how to configure that applet.

Presumably I can define the desired date format with a string like %a %Y-%m-%d %H:%M, which yields (in Germany) Di 2019-06-18 19:10, for example.

But where should I enter that format definition?
- - -
Linux Mint 19 MATE 64bit XFCE

michael-hi
Level 1
Level 1
Posts: 23
Joined: Sun Mar 19, 2017 2:31 pm

Re: Choose the date format for the clock applet

Post by michael-hi » Tue Jun 18, 2019 4:14 pm

This may sound silly but you could delete the Clock applet from the panel and replace it with the Command applet, which can also show a clock. Then right-click on the Command applet, select Preferences (or whatever the equivalent is in German) and change the command to:

Code: Select all

date '+%a %F %R'
Alternatively, if you want to keep the left-click calendar, you could try having both - that is to say Command showing the date, placed immediately to the left of Clock showing the time. In that case, the command would be:

Code: Select all

date '+%a %F'
and in the clock applet Preferences you could delete date, weather and temperature (there is anyway a separate Weather Report applet if you really want that). You would need to move the two applets carefully to space them the right distance apart and make sure the time isn't pushed up too close to the end of the panel.

If you want these to appear at the right-hand end of the panel, you will need to right-click just to the left of the notification icons already there so as to unlock the Notification Area and move it leftwards to make space.

I don't know if this idea has any unexpected drawbacks but you could always try it...

(Post edited as I had omitted the + sign from the commands.)

Mik3e
Level 4
Level 4
Posts: 209
Joined: Sat Jan 01, 2011 2:54 pm

Re: Choose the date format for the clock applet

Post by Mik3e » Sat Jun 29, 2019 7:28 pm

One of the problems is that perfs do not show in the dconf editor without a search due to lack of a schema.

Launch dconf editor
Go to org/mate/panel/objects
Wade thru the objects and determine the object number of the clock applet
Search for 'prefs'
In search results find and select the object for the clock
Select custom-format and put in the desired format code
Select format and change to 'custom'

Good luck,
Mike

Post Reply

Return to “MATE”