date Linux and Unix 命令手册
本命令手册以实用,简洁为原则,对于已经消化的内容,不附加详细的注解。
磁针石
联系方式: QQ:37391319 gmail and gtalk:
参考资料
<!--[if !supportLists]-->l <!--[endif]-->《Unix 技术手册》
<!--[if !supportLists]-->l <!--[endif]-->Solaris 8 date 命令帮助
常用用法
*Solaris 8 帮助中的实例,分行显示日期和时间
bash-2.03# date '+DATE: %m/%d/%y%nTIME:%H:%M:%S'
DATE:
TIME:09:31:50
Linux 的命令帮助没有这种实例,可见参考Solaris的更好。
<!--[if !supportLists]-->* <!--[endif]-->设置日期和时间, 设置为
bash-2.03# date 010116592000
Sat Jan 1 16:59:00 CST 2000
*Solaris 8 帮助中的实例,设置时间
bash-2.03# date 1234.56
Sat Jan 1 12:34:56 CST 2000
*获取年月日
bash-2.03# date +%y-%m-%d
命令参考
*Solaris 8 date 命令参考
bash-2.03# man date
Reformatting page. Please Wait... done
User Commands date(1)
NAME
date - write the date and time
SYNOPSIS
/usr/bin/date [ -u ] [ + format ]
/usr/bin/date [ -a [ - ] sss.fff ]
/usr/bin/date [ -u ] [ [ mmdd ] HHMM | mmddHHMM [ cc ]
yy ] [ .SS ]
/usr/xpg4/bin/date [ -u ] [ + format ]
/usr/xpg4/bin/date [ -a [ - ] sss.fff ]
/usr/xpg4/bin/date [ -u ] [ [ mmdd ] HHMM | mmddHHMM [
cc ] yy ] [ .SS ]
下一篇:没有了
