How TO = Change Clock Format 12/24H for LXDE

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

How TO = Change Clock Format 12/24H for LXDE

Postby Jay514 on Fri Mar 12, 2010 1:19 am

Here is how to change your clock setting between 12H / 24H Format
I searched all the forums & LXDE forums & could not find anything on the clock settings, so I kept working with it till I figured it out. :wink:
Basically right click the clock & click on settings.
You will see the clock format box with %R for 24H format. Change it to %X for 12H format.
Also you can try different combos if you want to display the day ,month, ect.
Ex= %X %D gives you the date after the time.
Ex= %X %A gives you day of the week after time
The " Date Manual " explains the Letters "A-Z" & the corresponding results. Not all letters are assigned , space where necessary.
Hope this helps,
Jay514 :mrgreen:

EDIT = Credit for this find goes to user Mr_Shifty , Thanks :)
Here is how you can find the Manual that explains all of the settings, in LXDE just open the LX terminal & enter this code
Code: Select all
man date

If you cannot see all of the settings just scroll down, the complete manual for date time settings

You may view the more comprehensive manual if it is installed on the site(forums.Linuxmint.com) by opening a terminal & input =
Code: Select all
info coreutils 'date invocation'


Thanks To User = verbertus & Dev= Kendall, Also Knew of this on line manual =

Posix compliant clock formats.
Last edited by Jay514 on Mon Apr 16, 2012 8:31 pm, edited 2 times in total.
Reason: update
Image
" Do Not Do Wrong Twice,That Which You Could Have Done Right The First Time"

Main = HP Pavilion DV4-1275mx - OS=Mint_CE x64KDE/LXDE,& x64Kubuntu
User avatar
Jay514
Level 5
Level 5
 
Posts: 658
Joined: Wed Mar 25, 2009 2:14 pm
Location: Atlanta GA USA

Linux Mint is funded by ads and donations.
 

Re: How TO = Change Clock Format 12/24H for LXDE

Postby Aging Technogeek on Sat Mar 20, 2010 8:04 am

Good tutorial. It proves you can figure out most things in Linux if you are willing to try
Image

Registered Linux User 483387
User avatar
Aging Technogeek
Level 13
Level 13
 
Posts: 4605
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: How TO = Change Clock Format 12/24H for LXDE

Postby deadguy on Sat Mar 20, 2010 10:56 am

very handy!!

I had it as %r which also sets the clock to 12 hour format
but was not aware of %D or %A

thanks :D
User avatar
deadguy
Level 5
Level 5
 
Posts: 710
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: How TO = Change Clock Format 12/24H for LXDE

Postby Jay514 on Sun Mar 21, 2010 7:04 pm

Thanks Deadguy for the info, glad it helped.
& thanks Aging Technogeek for the kudos,
You know the only reason for the how to post was = You know when something on your desktop is really bothering you & you go search for help, then you find none & repeat the process, untill you get tired of it, so you just fix it yourself, or break it trying.
Well I was at the point I was going to remove the clock or fix it. So I did, & it was so easy, I said " I'll make a How To so that someone else does not have to pull their hair out trying to fix the clock, :lol:" So I did.
Jay514 8)
Image
" Do Not Do Wrong Twice,That Which You Could Have Done Right The First Time"

Main = HP Pavilion DV4-1275mx - OS=Mint_CE x64KDE/LXDE,& x64Kubuntu
User avatar
Jay514
Level 5
Level 5
 
Posts: 658
Joined: Wed Mar 25, 2009 2:14 pm
Location: Atlanta GA USA

Re: How TO = Change Clock Format 12/24H for LXDE

Postby popmuzik on Sat Apr 24, 2010 7:56 pm

01: Right click the clock and goto "Digital Clock Settings"
02: In the Clock Format section paste this: %A %x %X
03: Click close and your clock will look like this: Saturday 04/10/2010 06:37:24 PM

04: I LOVE Linux MINT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
popmuzik
Level 1
Level 1
 
Posts: 1
Joined: Sat Apr 10, 2010 6:25 pm

Re: How TO = Change Clock Format 12/24H for LXDE

Postby mark9950 on Fri May 21, 2010 11:47 pm

Hey that last one works great.
mark9950
Level 2
Level 2
 
Posts: 63
Joined: Sat Feb 27, 2010 7:22 pm

Re: How TO = Change Clock Format 12/24H for LXDE

Postby Jay514 on Fri Jun 04, 2010 8:08 pm

An important Edit to the OP, Added the Manual that I was originally looking for, Thanks to user Mr_Shifty :D
Image
" Do Not Do Wrong Twice,That Which You Could Have Done Right The First Time"

Main = HP Pavilion DV4-1275mx - OS=Mint_CE x64KDE/LXDE,& x64Kubuntu
User avatar
Jay514
Level 5
Level 5
 
Posts: 658
Joined: Wed Mar 25, 2009 2:14 pm
Location: Atlanta GA USA

Re: How TO = Change Clock Format 12/24H for LXDE

Postby DrHu on Fri Jun 04, 2010 9:21 pm

I had a problem with mint 8, in which the year display was a two digit version, and came up as 10(I think, anyway it looked odd)

I wanted a 2010 year display, I asked a question about it on these forums, and while waiting I had noticed the line in the digital clock selection
Format codes: man 3 strftime; \n for line break, and I actually just type man strftime in a terminal and read the particulars, format codes
--so I could then use %Y (instead of the %y) which Mint 8 had used, and I saw 2010 as the year

Now with Lxde mint 9 RC, I see that year is removed, added it back using this format
    %H:%M %Y
--there is a space character between %M and %Y, which allows spacing the year a little further away from the time part of the digital clock display.

Having read these posts, I relaigned the format to be closer to what I normally use for dates ( ddMmmyyyy, 04Jun2010)
--and use this selection %H:%M %e%b%Y, which looks fine to me, I can probably leave out the day name, but I haven't decided on that yet, it is always useful to have a quick glance that gives you as much information as you need..

Not a joke to say, I advise everyone to adopt such a readable format ddMmmyyyy instead of ##/##/#### (numbers only), and here I had thought HAL had provided the interpretation and the user didn't need to help the programmer by making his/her job as easy as possible
    By getting the user used to only using numbers and then having to know is it day before month or month before day: from reading the date, you just don't know, and they call users Dumb ?
    --is it European or is it American, the burden is down to the user to remember!

For an exact match to my standard style, I now choose %d instead of %e, so I get the full 18:00 04Jun2010, good enough.
User avatar
DrHu
Level 16
Level 16
 
Posts: 6611
Joined: Wed Jun 17, 2009 8:20 pm

Re: How TO = Change Clock Format 12/24H for LXDE

Postby gychang on Sat Jun 05, 2010 11:31 am

I use %r - %a, and works well for me.

Anyone figure out how to make background black and foreground red?, just like LED?

thanks,

gychang
--
cruising the desert
--
User avatar
gychang
Level 3
Level 3
 
Posts: 143
Joined: Tue Dec 09, 2008 12:24 pm

Re: How TO = Change Clock Format 12/24H for LXDE

Postby rich_roast on Sat Jun 05, 2010 12:30 pm

All the lxpanel plugins honour the font colour setting picked in panel settings -> appearance. It's not ideal, but you can select red and hey presto, red clock font.
User avatar
rich_roast
Level 6
Level 6
 
Posts: 1136
Joined: Sat Sep 05, 2009 4:37 pm

Re: How TO = Change Clock Format 12/24H for LXDE

Postby darthn8ers on Fri Sep 02, 2011 7:11 pm

This is what I use "%A-%b%d %l:%M"
It looks like this "Friday-Sep02 4:06"
About.com has a clock string format list with examples.
darthn8ers
Level 1
Level 1
 
Posts: 1
Joined: Fri Sep 02, 2011 6:59 pm

Re: How TO = Change Clock Format 12/24H for LXDE

Postby Coolx3ni on Sat Mar 31, 2012 5:11 pm

Thank you. It works for linux mint 12 lxde
User avatar
Coolx3ni
Level 1
Level 1
 
Posts: 5
Joined: Sat Feb 04, 2012 9:11 pm

Re: How TO = Change Clock Format 12/24H for LXDE

Postby Jay514 on Mon Apr 16, 2012 8:35 pm

Good too see it is still working in LXDE :) Glad it helped you Coolx3ni. I done some edits to the OP so it reflects the manual more clearly now, Have a good one guys,
Jay :mrgreen:
Image
" Do Not Do Wrong Twice,That Which You Could Have Done Right The First Time"

Main = HP Pavilion DV4-1275mx - OS=Mint_CE x64KDE/LXDE,& x64Kubuntu
User avatar
Jay514
Level 5
Level 5
 
Posts: 658
Joined: Wed Mar 25, 2009 2:14 pm
Location: Atlanta GA USA

Linux Mint is funded by ads and donations.
 

Return to Tutorials / Howtos

Who is online

Users browsing this forum: Google [Bot] and 13 guests