By default, The GNOME Desktop panel clock applet has only a few controllable options. We can only select the 12/24 standard, or select the date/second display. Now, this tip gives you full control over your clock display in Ubuntu. Start the terminal or press Alt + F2 to run gconf-editor. Locate/apps/panel/applets and find your "Clock" Applet. For example, I am applet_1, then go to prefs. Now
By default, The GNOME Desktop panel clock applet has only a few controllable options. We can only select the 12/24 standard, or select the date/second display.
Now, this tip gives you full control over your clock display in Ubuntu.
First, open the terminal or press Alt + F2 to run gconf-editor and locate/apps/panel/applets.
Find your "Clock" Applet, like applet_1 here, and locate prefs.
Now, you only need to use HTML syntax and strftime format to define the style and effect you want. Enter the defined style in custom_format and change it to custom in format, it takes effect immediately.
For example, I enter % Y % B % d %.% H: % MAnd set format to custom. The results will be shown in:
Of course, my definition is ugly. You can set your favorite style based on your preferences. The format of strftime is as follows:
% A abbreviation of the day of the week.
% A full name of the day of the week.
The abbreviation of % B month name.
% B full name of the month name.
% C the local date time is better than the string.
% D indicates the day of the month (range: 00 to 31) with a number ).
% H indicates the hour in the 24-hour format (ranging from 00 to 23 ).
% I represents the hour in 12-hour format (range: 01 to 12 ).
% J indicates the day of the year (range: 001 to 366 ).
The number of % m months (ranging from 1 to 12 ).
% M minutes.
% P uses 'am' or 'pm 'to indicate the local time.
% S seconds.
% U indicates the week of the current year. The first week starts from the first Sunday.
% W indicates the week of the current year. The first week starts from the first Monday.
% W indicates the day of the week by number (0 indicates Sunday ).
% X date representation without time.
% X does not include the time representation of the date.
The two digits % y indicate the year (range: 00 to 99 ).
% Y indicates the complete year number, that is, the four-digit number.
% Z time zone or abbreviated name.
Reprinted Please note: