1、查看操作系统的当前时间(包含日期、时间)
命令:date
结果:2019年 10月 12日 星期六 14:35:17 CST
 
2、按自己的显示格式,输出结果:
命令1:date "+%Y-%m-%d,%H:%M:%S"
命令2:date "+%Y-%m-%d,%H:%M:%S,Today is %j day of this year."
 
3、命令:date "+Today is %j day of this year."
结果:Today is 285 day of this year.
posted on 2019-10-15 16:53  西安蓝鹰信息  阅读(1804)  评论(0)    收藏  举报