Tip: Linux personalized face clock display

  

By default, the clock widget for the GNOME desktop has only a few control options, we can only choose 12/24, or select the date/second hand display.

Now, this little trick gives you complete control over your clock display.

First open the terminal or press Alt+F2, run gconf-editor, navigate to: /apps/panel/applets

Find your "clock”Applet, like me here is applet_1 , then locate to prefs.

Now, you can define the styles and effects you want in HTML syntax and strftime format. Enter the defined style in custom_format and change it to custom at format to take effect immediately.


Figure 1 Configuration Interface

For example, I type: %Y %B %d %A%H: %M and set the format to: custom. Then the effect will be as shown below:


Figure 2 Panel display

Of course, I define the ugly, you can set your favorite according to your preferences. style. The following is the format reference for strftime:

%a Abbreviation for the day of the week.

%A The full name of the day of the week.

%b Abbreviation for month name.

%B The full name of the month name.

%c The local datetime is preferably a string.

%d Use numbers to indicate the day of the month (range 00 to 31).

%H The number of hours is expressed in 24-hour format (range 00 to 23).

%I Displays the number of hours in a 12-hour number (range 01 to 12).

%j is a number indicating the day of the year (range 001 to 366).

The number of %m months (range from 1 to 12).

%M minutes.

%p Represents local time with ‘AM’ or ‘PM’.

%S seconds.

The %U number indicates the first few weeks of the year, and the first week begins on the first Sunday.

The %W number indicates the first few weeks of the year, and the first week begins on the first Monday.

%w Use numbers to indicate the day of the week (0 is Sunday).

%x Date notation with no time.

%X Time notation with no date.

%y The two digits indicate the year (range from 00 to 99).

%Y The full year number is represented by four digits.

%Z Time zone or name abbreviation.



Copyright © Windows knowledge All Rights Reserved