|
In the GUI, right-click on the clock and choose preferences.
On the command line
pogson@Beast:~$ date
Fri Mar 24 19:46:53 CST 2006
pogson@Beast:~$ date +%I
07
pogson@Beast:~$ date +%H
19
See man date for details of formatting the time string.
When you have it the way you want it, you can define your own command to display time with alias
alias T=date +%I
alias T="date +%H"
T
19
You can put the alias command in your .bashrc file in your home directory so the command you defined will be there at the next login.
|