使用DATE命令修改AIX系统时间

Examples

  1. To display current date and time, enter:
    date
  2. To set the date and time, enter:
    date 0217142590
    
    For a system that uses CST as its time zone, this command sets the date and time to Sat Feb 17 14:25:00 CST 1990.
    Note: You must have root authority to change the date and time.


其中,date后面日期的格式如下,mm月份、dd日期、HH小时、MM分钟、yy年份:

The following formats can be used when you set the date with the Date parameter:

  • mmddHHMM[YYyy]
  • mmddHHMM[yy]