Customize the time and date display format of the Ubuntu panel

Source: Internet
Author: User
Tags month name

Customize the time and date display format of the Ubuntu panel

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 install the dconf Editor in the Ubuntu Software Center before you start.

Start the software and follow these steps:

1. When dconf Editor is started, navigate to com-> canonical-> indicator-> datetime. Set the value of time-format to custom.

Custom time format

You can also perform the preceding operations using commands in the terminal:

  1. gsettings set com.canonical.indicator.datetime time-format 'custom'

2. Now you can customize the format of time and date by editing the value of custom-time-format.

Custom-Time Format

You can also run the following command: (LCTT: FORMATVALUEHERE is replaced with the required format value)

  1. 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

Related Article

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.