Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to customize graphical desktop time display on Ubuntu system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to customize the graphical desktop time display on the Ubuntu system". In the daily operation, I believe that many people have doubts about how to customize the graphical desktop time display on the Ubuntu system. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubts of "how to customize the graphical desktop time display on the Ubuntu system". Next, please follow the editor to study!

Although there are already some options available on the settings page, this quick tutorial will show you how to customize the time and date indicators on the Ubuntu panel in more depth.

Before you begin, search for and install dconf Editor in the Ubuntu Software Center. Then start the software and follow these steps:

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

You can also do the above through the commands in the terminal:

The code is as follows:

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.

You can also do this with the command: (LCTT: replace FORMATVALUEHERE with the desired format value)

The code is as follows:

Gsettings set com.canonical.indicator.datetime custom-time-format 'FORMAT_VALUE_HERE'

The following is the meaning of the parameters:

% a = week initials

% A = full spelling of week name

% b = month abbreviation

% B = full spelling of month name

% d = date of each month

% l = hour (1.. 12),% I = hour (01.. 12)

% k = hour (1. 23),% H = hour (01. 23)

% M = minutes (00.59)

% p = afternoon, AM or PM,% P = am or pm.

% S = seconds (00.59)

You can open the terminal and type the command man date and execute it for more details.

Some examples of custom time and date display format values:

PS: Overview of ways to view / modify Linux time zone and time

I. time zone

1. View current time zone

Date-R

two。 Modify the setting time zone

Methods (1)

Tzselect

Method (2) is limited to RedHat Linux and CentOS

Timeconfig

Method (3) is suitable for Debian.

The code is as follows:

Dpkg-reconfigure tzdata

3. Copy the appropriate time zone file, replace the system time zone file, or create a link file

The code is as follows:

Cp / usr/share/zoneinfo/$ Primary time Zone / $Sub time Zone / etc/localtime

It can be used in China:

The code is as follows:

Cp / usr/share/zoneinfo/Asia/Shanghai / etc/localtime

Second, time

1. Check the time and date

Date

2. Set time and date

Order to set the system date to June 10, 1996

Date-s 06Universe 22 Universe 96

The command to set the system time to 01:52:00

Date-s 13:52:00

3. Write the current time and date to BIOS to avoid invalidation after restart

Hwclock-w

Timing synchronization time

* / usr/sbin/ntpdate 210.72.145.44 > / dev/null 2 > & 1

At this point, the study on "how to customize the graphical desktop time display on the Ubuntu system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report