linux下用date -s "20131215 09:02:25"把时间设为2013年12月15日9点2分25秒。

而aix呢?它不认-s这个参数:

date -n mmddHHMMYY,mm表示月分,dd表示日期,HH表示小时,MM表示分钟,YY表示年份。

如:date -n 1215090213表示把当前时间设为2013年12月15日9点2分,秒数无法修改。

MAN中的解释如下:

[@more@]

Syntax

To Set the Date and Time as Root User

/usr/bin/date [ -n ] [ -u ] [ Date ] [ +FieldDescriptor ... ]

The following formats can be used when setting the date with the Date

parameter:

* mmddHHMM[YYyy]

* mmddHHMM[yy]

The variables to the Date parameter are defined as follows:

mm

Specifies the month number.

dd

Specifies the number of the day in the month.

HH

Specifies the hour in the day (using a 24-hour clock).

MM

Specifies the minute number.

YY

Specifies the first two digits of the year. Note: If you do not

specify the first two digits of the year, values in the range 69

to 99 refer to the twentieth century, 1969 to 1999 inclusive, and

values in the range 00 to 68 refer to years in the twenty-first

century, 2000 to 2068 inclusive.

yy

Specifies the last two digits of the year. Note: The date command

accepts a 4 digit year as input. For example, if a four-digit year

is specified, the date command tries to set the year to "YYyy" and

fails for values which are out of range (less than 1970 and

greater than 2037).

例如:

# date

Sun Dec 15 14:54:35 GMT+01:00 2013

# date 12150902

如果要修改秒数:

#smitty system (进入修改时间界面)

根据提示 选择 修改系统时间选项 回车

(英文版本的应该是:  选择"Change / Show Date and Time"回车,再选择"Change /Show Date & Time"回车)

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

年 (00-99)                                       [10]                     #YEAR

月 (01-12)                                       [12]                     #MONTH

日 (1-31)                                        [01]                     #DAY

时 (00-23)                                       [14]                     #HOUR

分 (00-59)                                       [11]                     #MINUTES

秒 (00-59)                                       [38]                     #SECONDS

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

把光标移动到 对应的[10],[12],[01],[14]上,然后输入想要修改的数字,按回车,OK。

aix 修改服务器时间,AIX修改系统时间相关推荐

  1. CentOS 7 查看系统时间、更新系统时间 、修改系统时间

    查看系统容时间,硬件时间 date //查看系统时间hwclock //查看硬件时间 timedatectl # 查看系统时间方面的各种状态Local time: 四 2014-12-25 10:52 ...

  2. asp.net站点时间格式与系统时间格式不一致。手动修改

    asp.net站点时间格式与系统时间格式不匹配时,当修改系统时间格式,站点时间可能还是旧的格式.则可通过修改注册表更新时间格式. 1.开始-运行-输入regedit,依次找到HKEY-Users\.D ...

  3. qt linux 修改系统时间,linux改变系统时间

    linux修改系统时间 linux 2009-03-04 15:23:18 阅读1710 评论0 字号:大中小 订阅 Linux下的时间分为两种,系统时间与硬件时间.我们一般看到的时间就是系统时间,比 ...

  4. linux cst时间转换,linux系统中CST与EDT时间转换以及系统时间与网络时间同步

    初始时间:2012年 09月 14日 星期五 18:15:33EDT [root@test ~]# mv /etc/localtime /etc/localtime.bak [root@test ~] ...

  5. Linux硬件时间加速,linux 系统时间/硬件时间

    一.首先要弄清几个概念: 1. "系统时间"与"硬件时间" 系统时间: 一般说来就是我们执行 date 命令看到的时间,linux系统下所有的时间调用(除了直接 ...

  6. linux 系统时间 硬件时间,linux 设置系统时间和硬件时间

    linux 的系统时间有时跟硬件时间是不同步的 Linux时钟分为系统时钟(System Clock)和硬件(Real Time Clock,简称RTC)时钟.系统时钟是指当前Linux Kernel ...

  7. 浏览器时间与电脑系统时间不一致

    浏览器时间与电脑系统时间不一致 如图,今天时间是2021/1/28,但是浏览器打印出来的时间是昨天27号 这个时候我尝试了清理缓存.恢复浏览器默认设置.重新下载浏览器都是不管用,那么管用的方法来了: ...

  8. c语言文件名自动加系统时间,C语言获取系统时间的函数

    在标准C编程中,我们如何写程序来获取当前系统的时间呢? 获取系统时间的函数 #include time_t  time(time_t  *t) 参数:如果参数不为空,那么返回值会存储一份到t所指向的空 ...

  9. mysql中 对表中存放的时间与当前系统时间进行比较

    MySQL 中 对表中存放的时间与当前系统时间进行比较 比较代码 比较数据库中的结束时间大于当前时间 unix_timestamp(appointment_end_time) > unix_ti ...

  10. aix系统怎么修改服务器时间同步,AIX时间同步

    本文介绍在AIX下如何制做时间同步服务器 --时间同步 time-nw.nist.gov 210.72.145.44 在AIX中可以用两种方法来实现应用环境中多台机器的系统时间的统一. 一个是启动xn ...

最新文章

  1. java集合类详细概述
  2. 人才空缺4600万!大厂优先录用,这个职业今年火遍全网
  3. java国际化 英语的标识符_(转)Java 国际化
  4. xpath 查询忽略大小
  5. reflections歌词翻译_Reflections中文歌词
  6. Android studio 装SDK,android studio安装sdk
  7. ubuntu运行迅雷极速版
  8. 数字图像处理:图像压缩1 基础无损压缩
  9. 前端开发入门 --摘自慕克网大漠穷秋
  10. OCP 11G 051题库解析汇总链接
  11. 解决ORACLE字符集为US7ASCII,插入数据中文乱码问题
  12. C++:求平均分(针对基本数据类型的应用)
  13. 关闭公司电脑的强制屏幕保护
  14. Visual Studio 修改
  15. KEIL 提示L6406E L6407E的解决方法
  16. 数字信号处理学习(二):振动与信号
  17. 10分钟了解BIM+GIS融合,常见BIM数据格式及特性
  18. Oracle巡检脚本大全,服务器可直接部署
  19. l310加完墨水后需要怎样设置_请问打印机添加完墨水之后为什么还是显示缺墨提示呢?...
  20. 淘宝开网店的详细教程

热门文章

  1. Linux:模拟双色球中奖的脚本
  2. Exception in thread main java.lang.NoClassDefFoundError: antlr/ANTLRException 解决方法
  3. Wish:超牛的wish采集工具,挖掘wish热门标签,打造wish爆款软件
  4. linux 烧写google 平板的Rom
  5. 2019 年最好用的 6 款数据库监控工具
  6. mongodb distinct条件查询
  7. Spring @Conditional注解
  8. WordPress分页插件:WP-PageNavi
  9. xamarin android tv,Xamarin TV Scripts
  10. 五年创作纪念日,从小白到架构师