bash获取时间戳
In Bash, how to get the epoch timestamp, the number of seconds passed since the epoch?
在Bash中,如何获取新纪元 时间戳 ,即自新纪元以来经过的秒数?
In Bash, you can call the date
command with format option “+%s”:
在Bash中 ,您可以使用格式选项“ +%s”调用date
命令 :
date +%s
Here, “%s” means:
在这里,“%s”表示:
%s
%s
seconds since 1970-01-01 00:00:00 UTC
seconds since 1970-01-01 00:00:00 UTC
Answered by dtivl.
dtivl回答。
翻译自: https://www.systutorials.com/how-to-get-the-epoch-timestamp-in-bash/
bash获取时间戳