Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
If I understand your question correctly, you don't want to actually change the date, just the the format it's displayed in.
If I am correct that you want it as YYYY.MM.DD, you are selecting a super logical Japanese style format where everything flows from most significant to least significant -- just like currency or other human readable numbers. A complete time stamp might be: YYYY.MM.DD HH:MM:SS.ssss (where HH is in the 24-hour clock style).
By mentioning "Winders", you imply you are using one of the two desktop environments (as opposed to just a window manager or the command line). Unfortunately, I don't think date is going to be of any use here.
In KDE, right clicking on the clock display will bring up a menu that includes a Date & Time Format. Its dialog box has a Time & Dates tab... You can make up your own format, the Help button will explain the formating codes.
I don't have KDE. Is there a way to do this that's not dependent on having a particular window manager or desktop environment? I would guess it'd involve setting LC_TIME in a boot script, but I don't know what to set it to. I want the ISO 8601 date and time format (YYYY-MM-DD hh:mm:ss). Any ideas?
candyman123 -- I hope your Q is answered / problem is solved. BTW, how did it turn out?
You raise a new, but related, interesting problem. I think your answer is here:
I believe this should be possible by changing the locale
definition for LC_TIME in /usr/share/i18n/locales/en_US and
re-compilng the locale with localeconv. See "man 5 locale" and
Markku Kolkka https://www.redhat.com/archives/fedo.../msg02900.html
Here are some hints & references:
The "man COMMAND" lines will work at the command prompt, the "man:COMMAND" lines will work in Konqueror (using the "man" kioslave) -- triple-click, ^C, ^T, ^V,<enter> -- they are included for those of us who do have (& use) KDE.
Again, for those of you who with KDE -- If you use Konqueror & the KDE man ioslave, you will get 3 benefits: HTML presentation, actual links in many of the pages, & the command set is local to your distro.
Otherwise -- With the LQ man pages, you get HTML & the links, but not necessarily the localization.
Finally -- The command line gives localization, but no links & no HTML.
Consider creating a new, personal, locale -- rather than editing an existing standard one. Needless to say, don't forget to back up the original if you go the editing route. If you go the create route, pay attention to the copy keyword in locale(5).
Without knowing anything about VectorLinux, I can't be much more specific.
That was harder than I expected, but I did it. I made my own locale (en_US@bs) with everything but the LC_TIME section copyed from en_US. The en_US source file has has a lot of stuff in it that looks like
I wanted to make my locale the same way, because as far as I know doing it any other way might have unforseen consequences. So I made a little Mathematica program to convert between plain text and the <U0020> stuff.
It took me a while to figure out that the locale in VectorLinux is set by editing /etc/profile.d/lang.sh and /etc/profile.d/lang.csh, but I eventually got it and my new locale is working just like I expected.