免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2134 | 回复: 1
打印 上一主题 下一主题

怎么修改solaris的日期 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-24 19:43 |只看该作者 |倒序浏览

bash-2.03# man date
Reformatting page.  Please Wait... done
User Commands                                             date(1)
NAME
     date - write the date and time
SYNOPSIS
     /usr/bin/date [ -u ]  [  +  format  ]
     /usr/bin/date [  -a  [ - ]  sss.fff  ]
     /usr/bin/date [ -u ]  [  [ mmdd ]  HHMM  |  mmddHHMM  [ cc ]
     yy  ]  [ .SS ]
     /usr/xpg4/bin/date [ -u ]  [  +  format  ]
     /usr/xpg4/bin/date [  -a  [ - ]  sss.fff  ]
     /usr/xpg4/bin/date [ -u ]  [  [ mmdd ]  HHMM  |  mmddHHMM  [
     cc ]  yy  ]  [ .SS ]
DESCRIPTION
     The date utility writes the date and time to standard output
     or attempts to set the system date and time. By default, the
     current date and time will be written.
     Specifications of native language translations of month  and
     weekday  names  are  supported.  The month and weekday names
     used for a language are based on the locale specified by the
     environment variable LC_TIME;  see environ(5).
     The following is the default form for the "C" locale:
          %a %b %e %T %Z %Y
     for example,
     Fri Dec 23 10:10:42 EST 1988
OPTIONS
     The following options are supported:
     -a [-]sss.fff
           Slowly  adjust  the  time  by  sss.fff  seconds   (fff
           represents fractions of a second). This adjustment can
           be positive or negative. The system's  clock  will  be
           sped  up  or  slowed  down until it has drifted by the
           number of seconds specified. Only the  super-user  may
           adjust the time.
     -u    Display (or set)  the  date  in  Greenwich  Mean  Time
           (GMT-universal  time), bypassing the normal conversion
           to (or from) local time.
---------------------------------------------
bash-2.03# date
Fri Jan 25 03:42:55 CST 2008
bash-2.03# date -u 102419422008
Fri Oct 24 19:42:00 GMT 2008
bash-2.03# date
Sat Oct 25 03:42:07 CST 2008
bash-2.03# date
Sat Oct 25 03:42:19 CST 2008
bash-2.03# date
改完,回显是对的,但再查一下,就不对了,时区变了?

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/68079/showart_1334698.html
jover 该用户已被删除
2 [报告]
发表于 2008-10-29 10:29 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP