[root@rh ~]# date
Mon Oct 12 20:04:21 CST 2009
[root@rh ~]# date -s 20091015
Thu Oct 15 00:00:00 CST 2009
[root@rh ~]# date -s 091016
Fri Oct 16 00:00:00 CST 2009
[root@rh ~]# date -s 20:05:10
Fri Oct 16 20:05:10 CST 2009
[root@rh ~]# date -s "20091012 20:05:34"
Mon Oct 12 20:05:34 CST 2009
[root@rh ~]# date -s "091012 20:06"
Mon Oct 12 20:06:00 CST 2009
[root@rh ~]#
date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
[root@rh5 ~]# date 0519174710.55或[root@rh5 ~]# date 051917472010.55
[root@isqlw ~]# date
Mon Jul 26 11:04:24 CST 2010
[root@isqlw ~]# date -d"5 days ago" +"%d"
21
[root@isqlw ~]# date -d "5 days ago" +"%d"
21
[root@isqlw ~]# date -d "5 day ago" +"%d"
21
阅读(938) | 评论(0) | 转发(0) |