时间戳间隔修改
parent
e70774bc7f
commit
2ced973463
2
main.sh
2
main.sh
|
|
@ -45,7 +45,7 @@ show_file(){
|
||||||
# 获取当前时间,精确到秒,格式年月日时分秒
|
# 获取当前时间,精确到秒,格式年月日时分秒
|
||||||
get_current_time() {
|
get_current_time() {
|
||||||
local current_time
|
local current_time
|
||||||
current_time=$(date +"%Y%m%d%H%M%S")
|
current_time=$(date +"%Y_%m_%d_%H_%M_%S")
|
||||||
echo "$current_time"
|
echo "$current_time"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue