Examples
- To display current date and time, enter:
date
- To set the date and time, enter:
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.date 0217142590
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]