zoukankan      html  css  js  c++  java
  • linux centos 6.5 设置 时间显示格式

    第一种 方法

    [root@haha ~]# yum install gconf-editor
    [null@haha ~]$ gconf-editor                    // 此处注意 切换 到 普通用户

    此时 打开 gconf-editor 图形界面

    --------------------------------------------------------------------------------------------------------

    下面的 方法来源 http://www.cnblogs.com/dule/archive/2013/03/25/2981115.html

    //找到/apps/panel/clock/prefs/(这是默认位置)
    //修改custom_format的值为%Y-%m-%d %H:%M,也可自己定制其他
    //修改format的值为custom

    --------------------------------------------------------------------------------------------------------

    但是 打开后发现 panel 下 没有 clock 文件夹,而是在 panel 下的 applets目录下

    /apps/panel/applets/clock/prefs

    之后的修改同上

     

    第二种 方法

    直接到 /home/username(自己的普通用户名)/.gconf/apps/panel/applets/clock/prefs

    修改 %gconf.xml

    <entry name="custom_format" mtime="1402298094" schema="/schemas/apps/clock_applet/prefs/custom_format" type="string">
             <stringvalue>%Y-%m-%d  %H:%M</stringvalue>

    <entry name="format" mtime="1402298022" schema="/schemas/apps/clock_applet/prefs/format" type="string">

             <stringvalue>custom</stringvalue>

  • 相关阅读:
    ShellExecuteEx 函数说明
    npm
    Byte和char
    如何高效阅读一个项目
    C++中慎用malloc
    #ifdef
    string
    C++与C混合编译
    git@github.com: Permission denied (publickey).
    connect to host github.com port 22: Connection refused
  • 原文地址:https://www.cnblogs.com/molly/p/3777991.html
Copyright © 2011-2022 走看看