Ubuntu tips: Display personalized panel clock

Source: Internet
Author: User
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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.