
Ubuntu日本語フォーラム

ログインしていません。
Ubuntu 18.04を使っています。 PCは、 HP Probook 4230s
問題は、インディケータに表示されてる時刻の形式のことである。
現在は、 [ 木 5月 24 2018 05:57 ] になっている。 でも本当は・・・
[ 西暦 月 日 曜日 時間 ]のように表示させたい。
どこのファイルをいじれてば、できるのかわかりません。
解決できる方がいましたら助けてください(*´ワ`*)
よろしくお願いします。
オフライン
インディケータの日付の形式の変更・・・。
gnome-terminal 起動
$ gsettings set com.canonical.indicator.datetime time-format "custom"
$ gsettings set com.canonical.indicator.datetime custom-time-format "'%x (%a) %H:%M'"
オフライン
秒数まで表示するには、
gsettings set com.canonical.indicator.datetime custom-time-format "'%x (%a) %H:%M:%S'"
オフライン
親切でわかりやすい記事があります。<How to Customize Time & Date Format in Ubuntu Panel>
http://ubuntuhandbook.org/index.php/2015/12/time-date-format-ubuntu-panel/
%a = abbreviated weekday name
%A = full weekday name
%b = abbreviated month name
%B = full month name
%d = day of month
%l = hour ( 1..12), %I = hour (01..12)
%k = hour ( 1..23), %H = hour (01..23)
%M = minute (00..59)
%p = AM or PM, %P = am or pm.
%S = second (00..59)
などからお気に入りの組み合わせを作るといいかも知れません。また、記事にあるように端末を開いてman dateと入力するとさらに詳しい情報が表示されるんですね。これは知りませんでした。
bayou による投稿:
親切でわかりやすい記事があります。<How to Customize Time & Date Format in Ubuntu Panel>
http://ubuntuhandbook.org/index.php/2015/12/time-date-format-ubuntu-panel/
訂正します。私はubuntuのデスクトップ環境を使用していませんので記事の前半部分が最新のubuntuに適用できるかどうかは判りません。具体的なインジケーターの表示に係る部分のみ参考にしていただけると幸いです。