shell输出标准时间格式

输出标准时间格式,注意date和“+”号之间要有空格。code currTime=$(date +"%Y-%m-%d %T") echo $currTime #输出结果 2018-10-10 15:26:34
相关文章
相关标签/搜索