SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Sidux - Mint - PC Linux - Ubuntu 7.04 - Mepis 7 Beta5 - DreamLinux 2.2
Posts: 234
Rep:
am/pm verses 24 hour time
SuSE 9.1 - KDE
How do you set the clock to show the standard am/pm time instead of the 24 hour military time it shows now? I've looked, searched, traveled to the ends of the Earth and have not found the answer. Someone has to know how to do this, I mean come on ---- I've just installed PCBSD on an old beatup computer and it does it automatically!!!!!!!! GEEEEEEZZZZZEEE Guys......
And even after ten years, you'll get an answer to your question.
The display format of the clock is dependent on the locale settings. In /etc/sysconfig/language you can change to whatever locale you like (and is installed).
If you however refer to the format of the "date" command in bash, changing the locale setting will not switch to the am/pm setting (at least not on my system). Here, I solved the problem by setting an alias in .bashrc like
Code:
alias date="date +%r"
There are many other formatting options available. Have a look at the manpage.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.