Although some options are available on the Ubuntu settings page, this quick tutorial will show you how to customize the time and date indicators on the Ubuntu panel more deeply. Before you start, search for and install dconfEditor In the Ubuntu Software Center. Start the software and follow these steps: 1. After dconfEditor is started, navigate to com-& gt; canonical-& gt; indicat
Although some options are available on the Ubuntu settings page, this quick tutorial will show you how to customize the time and date indicators on the Ubuntu panel more deeply.
Customize world date
Search for and installDconf Editor.
Start the software and follow these steps:
1,After dconf Editor is started, navigateCom-> canonical-> indicator-> datetime. SetTime-formatToCustom.
Custom time format
You can also perform the preceding operations using commands in the terminal:
gsettings set com.canonical.indicator.datetime time-format 'custom'
2,Now you can editCustom-time-formatThe value of comes from defining the format of time and date.
Custom-Time Format
You can also run the following command: (LCTT: FORMATVALUEHERE is replaced with the required format value)
gsettings set com.canonical.indicator.datetime custom-time-format 'FORMAT_VALUE_HERE'
The following parameter meanings:
- % A = abbreviation of the week name
- % A = complete spelling of the week name
- % B = abbreviated month name
- % B = complete spelling of the month name
- % D = date of each month
- % L = hour (1 .. 12), % I = hour (01 .. 12)
- % K = hour (1 .. 23), % H = hour (01 .. 23)
- % M = minute (00 .. 59)
- % P = noon, AM or PM, % P = am or pm.
- % S = second (00 .. 59)
You can open the terminal and Type A commandman dateAnd execute the command to learn more details.
Some examples of display format values for custom time and date:
% A % H: % M % m/% d/% Y
% A % r % B % d or % a % I: % M: % S % p % B % d
% A %-d % B % l: % M % P % z
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-12/126780.htm