Linux date +%H%M%S与date +%H%m%S的区别
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
Linux date +%H%M%S与date +%H%m%S
M与m大小写的区别:M是min分钟,m是month月份。前者执行是正常的’时分秒’,后者打印出来是’时月秒’,而’月份’不变,短时间内’时’不变,'秒’在0-59之间循环,所以date +%H%m%S看上去就好像在一分钟之内循环一样。
打印date +%H%M%S的正常结果:
[zhouchen@hadoop102 tmp]$ echo `date +%H%M%S`
130954
[zhouchen@hadoop102 tmp]$ echo `date +%H%M%S`
130955
[zhouchen@hadoop102 tmp]$ echo `date +%H%M%S`
130956
[zhouchen@hadoop102 tmp]$ echo `date +%H%M%S`
130957
[zhouchen@hadoop102 tmp]$ echo `date +%H%M%S`
130958
[zhouchen@hadoop102 tmp]$ echo `date +%H%M%S`
130959
[zhouchen@hadoop102 tmp]$ echo `date +%H%M%S`
131000
[zhouchen@hadoop102 tmp]$ echo `date +%H%M%S`
131001
[zhouchen@hadoop102 tmp]$ echo `date +%H%M%S`
131002
打印date +%H%m%S的结果:
[zhouchen@hadoop102 tmp]$ echo `date +%H%m%S`
130954
[zhouchen@hadoop102 tmp]$ echo `date +%H%m%S`
130955
[zhouchen@hadoop102 tmp]$ echo `date +%H%m%S`
130956
[zhouchen@hadoop102 tmp]$ echo `date +%H%m%S`
130957
[zhouchen@hadoop102 tmp]$ echo `date +%H%m%S`
130958
[zhouchen@hadoop102 tmp]$ echo `date +%H%m%S`
130959
[zhouchen@hadoop102 tmp]$ echo `date +%H%m%S`
130900
[zhouchen@hadoop102 tmp]$ echo `date +%H%m%S`
130901
[zhouchen@hadoop102 tmp]$ echo `date +%H%m%S`
130902
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献1条内容
所有评论(0)