LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GKrellM time format for AM/PM in the time? (https://www.linuxquestions.org/questions/linux-software-2/gkrellm-time-format-for-am-pm-in-the-time-705650/)

peteyperson 02-18-2009 10:22 AM

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

kc8hr 02-18-2009 01:47 PM

Quote:

Originally Posted by peteyperson (Post 3448374)
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

peteyperson 02-18-2009 05:16 PM

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 (Post 3448548)
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


kc8hr 02-19-2009 10:18 AM

Gkrellm Clock
 
Quote:

Originally Posted by peteyperson (Post 3448770)
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

peteyperson 02-20-2009 08:47 PM

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 (Post 3449762)
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


kc8hr 02-21-2009 12:15 PM

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

PTrenholme 02-21-2009 02:38 PM

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 04:18 PM.