How to Change the Clock to 12 Hour in Puppy 4.2.1[CORRECTED]

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
yorkiesnorkie
Posts: 504
Joined: Mon 04 Jun 2007, 13:11
Location: George's Island

How to Change the Clock to 12 Hour in Puppy 4.2.1[CORRECTED]

#1 Post by yorkiesnorkie »

Note that I goofed up on the original post so I have corrected it!

To return Puppy's clock to the 12 hour format instead of the default 24 hour clock:

Go to ~/root/ and show all files.

Open the file ".jwmrc-tray" with geany.

Scroll down to the bottom of the file until you see the following entry:

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

I always like to comment out old lines. Comment out the line with "<!--" at the beginning and "-->" at the end.

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

Saving the old entry in a comment will allow you to revert back to the 24 hour clock later should you wish to change it back.

"%H" is the 24 hour setting. You will need to change it to "%I". That is an uppercase letter i. Adding "%p" adds am pm to the time.

Enter a new line below the comment. Edit the line as follows entering "<Clock format="%I:%M%p ">minixcal</Clock> " You can copy and paste the text below:

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

Save the file. You can choose menu/refresh menus to refresh the desktop or reboot to see the change in the clock.

5 PM will now appear as "05:53 PM" in the JWM menu tray.

Consult the following references for more clock settings:

http://linux.about.com/library/cmd/blcmdln_clock.htm

Yorkiesnorkie
:-)
Last edited by yorkiesnorkie on Mon 29 Jun 2009, 21:34, edited 3 times in total.

maggotspawn
Posts: 355
Joined: Tue 19 Aug 2008, 21:12
Location: Los Angeles, CA.
Contact:

#2 Post by maggotspawn »

Cool fix, thanks. :)
[url]http://www.agitprop666.com/PuppyLinux.html[/url]
[url]http://www.agitprop666.com/PuppyLinux2.html[/url]

Kal
Posts: 626
Joined: Thu 05 May 2005, 16:59
Location: California, High Desert

No xclock

#3 Post by Kal »

Puppy 421 doesn't have "xclock" installed normally. So, if you want a calender when clicking on the tray clock, use minixcal or set-time-for-puppy instead of xclock, as I do. Using xclock will cause no harm, it just won't run without installing it first.

Good Luck, Kal

User avatar
yorkiesnorkie
Posts: 504
Joined: Mon 04 Jun 2007, 13:11
Location: George's Island

Correction

#4 Post by yorkiesnorkie »

Whoops! I goofed up! Check out this URL:

http://linux.about.com/library/cmd/blcmdln_clock.htm

All you have to do is change the command from this:

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

To this:

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

The %I is for 12 hour clock! I'm ammending the original post!

Yorkie Snorkie

User avatar
yorkiesnorkie
Posts: 504
Joined: Mon 04 Jun 2007, 13:11
Location: George's Island

Re: No xclock

#5 Post by yorkiesnorkie »

Kal wrote:Puppy 421 doesn't have "xclock" installed normally. So, if you want a calender when clicking on the tray clock, use minixcal or set-time-for-puppy instead of xclock, as I do. Using xclock will cause no harm, it just won't run without installing it first.

Good Luck, Kal
Hi Kal,

What was I thinking! I've fixed my original post and put in a reference URL for the clock commands. I should have done better research from the start that's what steered me in the wrong direction! When I put xclock in the command it just defaulted to 12 hour, but it wasn't the correct thing to do. Thanks for pointing that out by the way. I'm learning!

Yorkiesnorkie
:-)

Kal
Posts: 626
Joined: Thu 05 May 2005, 16:59
Location: California, High Desert

Thanks

#6 Post by Kal »

Hi yorkiesnorkie

Much more better, thank you for posting this. Who isn't learning?

Kal

Post Reply