Slacko 5.4 How do I change clock to 12 hours? (Solved)

Booting, installing, newbie
Post Reply
Message
Author
angelsonefive
Posts: 5
Joined: Wed 12 Dec 2012, 20:58

Slacko 5.4 How do I change clock to 12 hours? (Solved)

#1 Post by angelsonefive »

OSMO and pupclockset 1.9.2 have no effect. Is there another way to change from military time to 12 hour clock?

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#2 Post by 8-bit »

Right_click on the digital clock in the task bar.
Select "Digital Clock" settings.
In the window that appears, change the "%R" to "%1:%M %p" .
Then close the window and restart the the window manager.

That worked for me in Slacko 5.4 running comp-fusion.

angelsonefive
Posts: 5
Joined: Wed 12 Dec 2012, 20:58

#3 Post by angelsonefive »

Doesn't work, both left and right click simply open the OSMO calendar

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#4 Post by 8-bit »

In the case of not seeing that option when right-clicking on the taskbar digital time display, you can try another solution.

Click on the House on the desktop to open ROX in the /root directory.
Then Click on the EYE to show hidden files.
Next, right-click on .jwmrc-tray and select Open as text.
At the end of that file, you will see a line that says:
"<Clock format="%H:%M">minixcal</Clock>" without the outside quotes.

Change that line again without the outside quotes to:
"<Clock format="%1:%M %p">minixcal</Clock>"

Restart the window manager and you should be greeted with am/pm type of time display.

This is for the Openbox and JWM window managers by the way.

It does not work when running xfce4 as window manager and also with comp-fusion.

Let us know if it works for you.

angelsonefive
Posts: 5
Joined: Wed 12 Dec 2012, 20:58

#5 Post by angelsonefive »

I made sure that my window manager is JWM and I pasted the line below, then restarted the window manager and also the X server but still shows 22.57 as the time format.


<Clock format="%l:%M %p">minixcal</Clock>

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#6 Post by 8-bit »

I do not know what is going on with the forum . But the character after the first percent sign is the numeral 1.
It is not showing as that so I will try doing a paste of it to this message in a code box.
I did not do it because the line was again changed.

So here it is manually I hope.



<Clock format="%1:%M %p">minixcal</Clock>

That seemed to work although I had to edit the line as a paste into the message had changed the %1 to a %l (lower case L).

So be sure that the character after the first percent sign is the numeral one.

It should then work for you.

postfs1

#7 Post by postfs1 »

8-bit wrote:I do not know what is going on with the forum . But the character after the first percent sign is the numeral 1.
...
Cache from the search engine --->
Attachments
10949.13428.0.14776.png
(23.94 KiB) Downloaded 940 times

Jasper

#8 Post by Jasper »

Hi,

If all else fails - left click on /root/.jwmrc-tray, then arrow
down to the bottom of the file, then amend the Clock line to:
<Clock format="%H:%M">minixcal</Clock>
then save
then use Menu>Shutdown>Restart JWM

My regards

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#9 Post by Flash »

8-bit wrote:I do not know what is going on with the forum . But the character after the first percent sign is the numeral 1.
It is not showing as that so I will try doing a paste of it to this message in a code box.
I did not do it because the line was again changed.

So here it is manually I hope.



<Clock format="%1:%M %p">minixcal</Clock>

That seemed to work although I had to edit the line as a paste into the message had changed the %1 to a %l (lower case L).

So be sure that the character after the first percent sign is the numeral one.

It should then work for you.
I edited your previous post to change the "l" in that line to a 1. It seemed to take, so I don't know what happened when you posted it. Did you try to edit that post and nothing changed?

User avatar
russoodle
Posts: 707
Joined: Fri 12 Sep 2008, 17:36
Location: Down-Under in South Oz

#10 Post by russoodle »

8-bit wrote:<Clock format="%1:%M %p">minixcal</Clock>

That seemed to work although I had to edit the line as a paste into the message had changed the %1 to a %l (lower case L).

So be sure that the character after the first percent sign is the numeral one.

It should then work for you.
I'm using Slacko with JWM.

Below, in the clock-parameters image, is what i get using "%1...." as per your advice, 8-bit....no disrespect, but the numeral "1" doesn't seem to be a valid parameter....in the 12-hr clock image, the lowercase "L" is used.
Attachments
12hr-clock.png
only used the &quot;%p&quot; here to show the AM time
(73.51 KiB) Downloaded 845 times
clock-parameters.png
sorry it's not clearer but scaled down image size
(71.65 KiB) Downloaded 861 times
[i][color=Green][size=92]The mud-elephant, wading thru the sea, leaves no tracks..[/size][/color][/i]

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#11 Post by CatDude »

Hi

I do not think that %1 (that's a number one) is a valid parameter.

According to this page the closest things resembling it are either a lower case letter ell, or an uppercase letter i

The images below show the result of using:
  • %1:%M %p (a number one)
    %I:%M %p (an uppercase letter i)
in Slacko-5.4 running Compiz and the LXPanel.

In both instances there is no AM/PM shown after the time. :?

CatDude
.
Attachments
a-number-one-i-dont-think-so.png
(48.9 KiB) Downloaded 891 times
still-no-AM-PM.png
(47.59 KiB) Downloaded 887 times
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

Jasper

#12 Post by Jasper »

Hi CatDude et al,

If am/pm is needed does:

<Clock format="%l:%M %p">minixcal</Clock>

that's a lower case L - work.

My regards

PS the space beween %M and %p inserts a space in the output.

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#13 Post by CatDude »

Hello Jasper
Jasper wrote:Hi CatDude et al,

If am/pm is needed does:

<Clock format="%l:%M %p">minixcal</Clock>

that's a lower case L - work.

My regards

PS the space beween %M and %p inserts a space in the output.
It's not so much that it is needed, more curiosity as to why it doesn't show in LXPanel.

Anyway mate, to answer your question, no it does not work (in the LXPanel)

CatDude
.
Attachments
with-the-lowercase-L.png
(44.86 KiB) Downloaded 848 times
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

Jasper

#14 Post by Jasper »

Hi CatDude,

Thanks for joining with your expertise.

I have reread angelonefives words twice more and I still miss
any mention of LXPanel (or for that matter am/pm).

Either I missed the reference, or you, in your wisdom, made
that assumption or already knew otherwise.

I have never used LXPanel, but it does seem that the 12 hour
clock is available, perhaps without am/pm.

My regards

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#15 Post by CatDude »

Hello Jasper
Jasper wrote:..I have reread angelonefives words twice more and I still miss
any mention of LXPanel (or for that matter am/pm).

Either I missed the reference, or you, in your wisdom, made
that assumption or already knew otherwise.
:lol: Sorry for any confusion caused,
but my first post was in response to 8-bit's statement:
8-bit wrote:...But the character after the first percent sign is the numeral 1.
and i was pointing out that that did not appear to be true According to this page
Jasper wrote:..I have never used LXPanel, but it does seem that the 12 hour
clock is available, perhaps without am/pm.
That is quite correct,
and the only reason i mentioned LXPanel is because of this:
8-bit wrote:...That worked for me in Slacko 5.4 running comp-fusion.
Which is exactly what i am running here, and that includes using the LXPanel

CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

angelsonefive
Posts: 5
Joined: Wed 12 Dec 2012, 20:58

#16 Post by angelsonefive »

I change the L to 1 and I also tried:

<Clock format="%H:%M">minixcal</Clock>

but neither worked, it is now 1:49 and it reads 13:49

angelsonefive
Posts: 5
Joined: Wed 12 Dec 2012, 20:58

#17 Post by angelsonefive »

I found the solution/problem, pupclockset 1.92 from:
http://www.murga-linux.com/puppy/viewtopic.php?p=464921

"Downloads" link doesn't work/install but the pupclockset from the "Pupmates" right under it does install. YEA.....thanks everyone. I love my new Puppy!!!

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#18 Post by 8-bit »

It is pretty cute when someone new to Puppy shows the rest of us the location of a utility to change clock format from 24hr to 12hr!

Way to go angelsonefive!

Needless to say, I have used the information you provided to download that utility!

Who says you cannot teach an old dog new tricks! :wink:

Post Reply