LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-18-2009, 10:22 AM   #1
peteyperson
Member
 
Registered: Jan 2009
Distribution: openSUSE 11.1, with KDE 4
Posts: 71

Rep: Reputation: 16
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
 
Old 02-18-2009, 01:47 PM   #2
kc8hr
Member
 
Registered: Sep 2006
Location: Inkster, MI USA
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 15
Talking

Quote:
Originally Posted by peteyperson View Post
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
 
Old 02-18-2009, 05:16 PM   #3
peteyperson
Member
 
Registered: Jan 2009
Distribution: openSUSE 11.1, with KDE 4
Posts: 71

Original Poster
Rep: Reputation: 16
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 View Post
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
 
Old 02-19-2009, 10:18 AM   #4
kc8hr
Member
 
Registered: Sep 2006
Location: Inkster, MI USA
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 15
Question Gkrellm Clock

Quote:
Originally Posted by peteyperson View Post
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
 
Old 02-20-2009, 08:47 PM   #5
peteyperson
Member
 
Registered: Jan 2009
Distribution: openSUSE 11.1, with KDE 4
Posts: 71

Original Poster
Rep: Reputation: 16
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 View Post
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
 
Old 02-21-2009, 12:15 PM   #6
kc8hr
Member
 
Registered: Sep 2006
Location: Inkster, MI USA
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 15
Unhappy 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
 
Old 02-21-2009, 02:38 PM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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
 
  


Reply

Tags
gkrellm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System time vs Hardware time and Daylight Savings Time Toadman Linux - General 6 03-17-2007 08:12 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - Networking 6 03-16-2007 07:14 PM
Time format in boot-time messages jonr Linux - Kernel 1 12-22-2006 12:31 PM
GKrellM takes a LONG time to start up Oxagast Linux - Software 1 01-26-2006 01:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration