Time and Date Desklet

UUID: TimeAndDate@nightflame
Score: 3
Last edited: 3 days ago
Last commit: 5e8c8898e37572222d4f9e7ea0725ac7cb9ee258

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:

http://pubs.opengroup.org/onlinepubs/007908799/xsh/strftime.html

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!

4 Comments

Mahesh Mankar
Mahesh Mankar-3 weeks ago
Is there any way to change color of text?
I need date in another color.
Diego Gargaglione
Diego Gargaglione-1 month ago
Nice and useful. Is there any way to change the font?
Kevin Waite
Kevin Waite-1 month 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 months ago
Simple, well designed and efficient. Thanks.