shell輸出標準時間格式

輸出標準時間格式,注意date和「+」號之間要有空格。code currTime=$(date +"%Y-%m-%d %T") echo $currTime #輸出結果 2018-10-10 15:26:34
相關文章
相關標籤/搜索