$EPOCHSECONDS
–
Number of Seconds since Unix Epoch
$EPOCHSECONDS
contains the number of seconds since the Unix Epoch.
The Unix Epoch starts at 1970-01-01 00:00:00 +0000 (UTC)
.
Links
Examples
- Print number of seconds since UNIX Epoch
1 2
LC_ALL=en_US echo $EPOCHSECONDS
BashSupport Pro 是一个 支持 $EPOCHSECONDS 的 Bash 集成开发工具 – 马上试用!