Time and Date Desklet

UUID: TimeAndDate@nightflame
Last edited:
8 months ago 2019-10-19, 19:29 UTC
Last commit: [cb16918d] Added Italian translation

A fork desklet that displays the time and date



Time and Date Cinnamon Desklet v0.1 - 19 June 2013

This is a simple desklet to display the time and date. The size and format of the date are configurable by changing the values in metadata.json. This can be launched from the Desklet itself by selecting Config from the menu.

Adjust the following paramters in the metadata.json file which is stored in ~/.local/share/cinnamon/desklets/TimeAndDate@nightflame:

"timeFormat": "%H:%M",
"timeSize": "50pt",
"dateFormat": "%A,%e %B",
"dateSize": "25pt"

REMEMBER TO LEAVE THE COMMAS IN - except for the last line!

The time and date format are from JavaScript toLocaleFormat function, and the possible values can be found at:


For exmple to add seconds change timeFormat to:

"timeFormat": "%H:%M:%S",

After changing the settings you need to remove and re-add the Desklet

If I knew what I was doing I would update the config through the GUI. Maybe next version.

-Steve desklets [at] stargw [dot] eu

Log In To Comment!


Benjamin Fenigsohn
Benjamin Fenigsohn-1 month ago
How to change the font size? I edited metadata.json, removed, then readded it and it's still the same size but changed in metadata.json.
aadityalr123-1 month ago
How can I modify this to display the number of days/hours/minutes from the start of a particular day?
fluntelion-5 months ago
When I want or need to change the color of the time and date display, I have to go a long way: /home/NAME/.local/share/cinnamon/desklets/TimeAndDate@nightflame/stylesheet.css. Whew! It is of course possible to add stylesheet.css as a bookmark in nemo, but it would be much more comfortable if you could add direct access to that file in the right-click menu. Would you do that? For me, and for everybody else, too? :-) Thank you for your attention.
crazymindstorm-8 months ago
hi is there a way to change the color of the desklet ?
Kashif Anwaar
Kashif Anwaar-9 months ago
For those who want to change it to 12 hour, change this in config = "timeFormat": "%l:%M", Good job, but changes in config requires restart.
Steven Martin
Steven Martin-1 year ago
Oddly, changing the metadata.json file makes no change to the Desklet, even after removing and restarting the clock. Is there some other trick?
Chris-1 year ago
I had to log out and then log back in for my changes in metadata.json to take place
marcositz-1 year ago
Simple and functional. Perfect! Thank you!
83c577nbybd8zb-1 year ago
any way to make it completely transparent? or change the background color?
marcositz-1 year ago
Desklets> General Settings> No decoration
Nir Regev
Nir Regev-2 years ago
Nice one, thanks !
Mahesh Mankar
Mahesh Mankar-2 years ago
Is there any way to change color of text? I need date in another color.
Diego Gargaglione
Diego Gargaglione-2 years ago
Nice and useful. Is there any way to change the font?
Kevin Waite
Kevin Waite-2 years ago
Love it!!! I removed the one i was using from Cairo-dock as it did not respect the font sizes for date. This one does Thank you very much.
Olivier Brouillard
Olivier Brouillard-3 years ago
Simple, well designed and efficient. Thanks.