Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 01:28
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to Change the Clock to 12 Hour in Puppy 4.2.1[CORRECTED]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
yorkiesnorkie


Joined: 04 Jun 2007
Posts: 505
Location: George's Island

PostPosted: 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
Smile

Last edited by yorkiesnorkie on Mon 29 Jun 2009, 17:34; edited 3 times in total
Back to top
View user's profile Send private message 
maggotspawn

Joined: 19 Aug 2008
Posts: 355
Location: Los Angeles, CA.

PostPosted: Sun 28 Jun 2009, 19:28    Post subject:  

Cool fix, thanks. Smile
_________________
www.agitprop666.com/PuppyLinux.html
www.agitprop666.com/PuppyLinux2.html
Back to top
View user's profile Send private message Visit poster's website 
Kal

Joined: 05 May 2005
Posts: 623
Location: California, High Desert

PostPosted: 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
View user's profile Send private message 
yorkiesnorkie


Joined: 04 Jun 2007
Posts: 505
Location: George's Island

PostPosted: 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
View user's profile Send private message 
yorkiesnorkie


Joined: 04 Jun 2007
Posts: 505
Location: George's Island

PostPosted: 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
Smile
Back to top
View user's profile Send private message 
Kal

Joined: 05 May 2005
Posts: 623
Location: California, High Desert

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0564s ][ Queries: 11 (0.0131s) ][ GZIP on ]