XFCE Clock - Custom formatting codes
This information is a little difficult to find and not in the XFCE help (as far as I know). Here are the formatting codes that can be used when setting the XFCE Clock (on the panel) to use a Custom format. Type the codes in the text box along with any other literal text that you want displayed such as colons, periods, etc.
Code:
%% a literal % %l:%M %p That's a lower case "L" not a capital "i". The resulting time display looks like this. 8:44 PM |
Hm, that's funny - these look VERY similar to my "man strftime" . :)
|
Or even the "man date" page ... :)
Even fancier date format help can be found with: Code:
$ info coreutils 'date invocation' |
Quote:
|
You're right. The Xfce docs should at least refer to where the information on Linux date formats can be found. This isn't Xfce information in particular ... it's general Linux stuff, which makes it harder to find in Xfce-centric searches.
|
Quote:
|
Eric, I just wanted to add my thanks. When I wanted to change the clock codes on my Slackware/Xfce laptop, all I knew was that I needed to know more about Xfce clock codes. So I did a Google search on "xfce clock codes". Give it a try; see what pops up as the first result. I certainly would never have known to look for a manual page on strftime, whatever that is. I think some of the most experienced Linux experts have forgotten how much they did not know when they first started using Linux. So thanks, and thanks to all the subject experts out there who have posted their expertise on this an other forums. We are completely MS-free at my small business, and it would not have been possible without this community.
|
Quote:
BTW, the Orage clock always shows the date whereas the standard Xfce clock only shows the date on mouse-over. |
COPIED! Thank you! :)
|
I understand the codes to type in, I just don't know where to type them.
|
No clue why you bumped a 3 year old thread, but here you go:
1) Right click the clock in xfce4-panel 2) Click Properties 3) Under clock options, you should see your clock with a drow-down menu, click "Custom" 4) Type in whatever you want as the original poster referenced. |
A HUGE thank you for posting these codes. Was having a hard time finding a way to change the 24 hour clock to am/pm. Got it working now. YEA! Bookmarked for future reference.
|
Quote:
|
Remember it accepts HTML too!! Helpful because it's the only way to change the color. A great clock format is
<span color="#ffffff">%a %m-%B %d%n%I:%M %p</span> Tue 07-July 29 02:03 PM |
Epoch days?
Is there a way to divide? E.g., I we want epoch days in decimal with custom precision. Am I out of luck? I see only epoch seconds are available.
|
All times are GMT -5. The time now is 02:37 PM. |