Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-18-2009, 10:22 AM
|
#1
|
Member
Registered: Jan 2009
Distribution: openSUSE 11.1, with KDE 4
Posts: 71
Rep:
|
GKrellM time format for AM/PM in the time?
Clock display format string has several options, but none that display either AM or PM. Been unsuccessful Googling it.
Anyone configured this correctly for 12-hour clock?
Thanks,
Petey
|
|
|
02-18-2009, 01:47 PM
|
#2
|
Member
Registered: Sep 2006
Location: Inkster, MI USA
Distribution: Ubuntu
Posts: 31
Rep:
|
Quote:
Originally Posted by peteyperson
Clock display format string has several options, but none that display either AM or PM. Been unsuccessful Googling it.
Anyone configured this correctly for 12-hour clock?
Thanks,
Petey
|
Here you go:
%l:%M <span foreground="$A"><small>%p</small></span>
Just copy and paste that string into your gkrellm config applet.
Good Luck!
Tim
|
|
|
02-18-2009, 05:16 PM
|
#3
|
Member
Registered: Jan 2009
Distribution: openSUSE 11.1, with KDE 4
Posts: 71
Original Poster
Rep:
|
Hi there,
Did that and I still don't get am / pm showing. Just the straight time. Tried closing down and reloading the app (plugs didn't work till after that) but no dice.
Petey
Quote:
Originally Posted by kc8hr
Here you go:
%l:%M <span foreground="$A"><small>%p</small></span>
Just copy and paste that string into your gkrellm config applet.
Good Luck!
Tim
|
|
|
|
02-19-2009, 10:18 AM
|
#4
|
Member
Registered: Sep 2006
Location: Inkster, MI USA
Distribution: Ubuntu
Posts: 31
Rep:
|
Gkrellm Clock
Quote:
Originally Posted by peteyperson
Hi there,
Did that and I still don't get am / pm showing. Just the straight time. Tried closing down and reloading the app (plugs didn't work till after that) but no dice.
Petey
|
Hmm...I did have to fight with it a bit to get it to work, as I remember. I don't know why that string doesn't work for you. Try this:
%l:%M %p
(stripping out the formatting commands)
"man strftime" for more info on clock formats.
Hope that helps!
Tim
|
|
|
02-20-2009, 08:47 PM
|
#5
|
Member
Registered: Jan 2009
Distribution: openSUSE 11.1, with KDE 4
Posts: 71
Original Poster
Rep:
|
It didn't solve the issue, though I can see from the command provided that it should have done :-)
Thanks for trying.
Petey
Quote:
Originally Posted by kc8hr
Hmm...I did have to fight with it a bit to get it to work, as I remember. I don't know why that string doesn't work for you. Try this:
%l:%M %p
(stripping out the formatting commands)
"man strftime" for more info on clock formats.
Hope that helps!
Tim
|
|
|
|
02-21-2009, 12:15 PM
|
#6
|
Member
Registered: Sep 2006
Location: Inkster, MI USA
Distribution: Ubuntu
Posts: 31
Rep:
|
Gkrellm & strftime
Sorry about that.
You could try http://members.dslextreme.com/users/...m/gkrellm.html and contact the developer, or check the e-mail list archives and see if anyone else has had a similar problem. That's all I can think of.
Good luck,
Tim
|
|
|
02-21-2009, 02:38 PM
|
#7
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
Well, I can't stand the AM/PM nonsense so I always use %k:%M <span foreground="$A"></span>, but the drop-down list of formats in the clock options section usually has four different ones you can use. And the display should change as you select each one, so a re-boot shouldn't be necessary.
F.Y.I. (in case you're missing the drop-down list) the four formats in mine are: (Comment added)
Code:
1) %k:%M <span foreground="$A"></span> # 15:21
2) %l:%M <span foreground="$A"><small>%S</small></span> # 3:21:45
3) %l:%M <span foreground="$A"><small>%p</small></span> # 3:21 PM
4) %k:%M <span foreground="$A"><small>%S</small></span> # 15:21:45
And, if you want it,
%l:%M <span foreground="$A"><small>%S %p</small></span> # 3:25:45 PM
|
|
|
All times are GMT -5. The time now is 02:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|