很长一段时间以来,我一直想让 Ubuntu 12.04 的时钟显示当前年份;我喜欢它出现在我的屏幕截图中。
但是,没有用于执行此操作的 gui 配置:https : //bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/465689
有谁知道我如何在某些配置文件或其他东西中更改它?
考虑到帮助我弄清楚的答案,让我们自定义指标日期时间。
gsettings set com.canonical.indicator.datetime time-format "'custom'"
gsettings set com.canonical.indicator.datetime custom-time-format "'%a, %d. %h %H:%M %Y'"
Run Code Online (Sandbox Code Playgroud)
这将给出“Mon, 02, Jul 21:00 2012”的输出。
您可以自定义格式,只要strftime. 对于其他格式,您可以查阅该命令的手册页strftime
并相应地进行定制。
| 归档时间: |
|
| 查看次数: |
965 次 |
| 最近记录: |