进入centos 查看时间
[root@localhost ~]# date
2017年 07月 11日 星期二 17:33:29 CST
2017年 07月 11日 星期二 17:33:29 CST
修改日期
[root@localhost ~]# date -s 20170712
2017年 07月 12日 星期三 00:00:00 CST
[root@localhost ~]# date -s 20170712
2017年 07月 12日 星期三 00:00:00 CST
修改时间
[root@localhost ~]# date -s 09:45:00
2017年 07月 12日 星期三 09:45:00 CST
[root@localhost ~]# date -s 09:45:00
2017年 07月 12日 星期三 09:45:00 CST