| Author |
Message |
yorkiesnorkie

Joined: 04 Jun 2007 Posts: 505 Location: George's Island
|
Posted: Sun 28 Jun 2009, 16:55 Post subject:
How to Change the Clock to 12 Hour in Puppy 4.2.1[CORRECTED] |
|
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, 17:34; edited 3 times in total
|
|
Back to top
|
|
 |
maggotspawn
Joined: 19 Aug 2008 Posts: 355 Location: Los Angeles, CA.
|
Posted: Sun 28 Jun 2009, 19:28 Post subject:
|
|
Cool fix, thanks.
_________________ www.agitprop666.com/PuppyLinux.html
www.agitprop666.com/PuppyLinux2.html
|
|
Back to top
|
|
 |
Kal
Joined: 05 May 2005 Posts: 620 Location: California, High Desert
|
Posted: Sun 28 Jun 2009, 22:35 Post subject:
No xclock |
|
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
|
|
Back to top
|
|
 |
yorkiesnorkie

Joined: 04 Jun 2007 Posts: 505 Location: George's Island
|
Posted: Mon 29 Jun 2009, 14:53 Post subject:
Correction |
|
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
|
|
Back to top
|
|
 |
yorkiesnorkie

Joined: 04 Jun 2007 Posts: 505 Location: George's Island
|
Posted: Mon 29 Jun 2009, 15:06 Post subject:
Re: No xclock |
|
| 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
|
|
Back to top
|
|
 |
Kal
Joined: 05 May 2005 Posts: 620 Location: California, High Desert
|
Posted: Mon 29 Jun 2009, 21:41 Post subject:
Thanks |
|
Hi yorkiesnorkie
Much more better, thank you for posting this. Who isn't learning?
Kal
|
|
Back to top
|
|
 |
|