$EPOCHSECONDS  –  Number of Seconds Since The Epoch

$EPOCHSECONDS represents the number of seconds since the epoch as integer value.

$EPOCHREALTIME contains the same value, but as a floating point value. $epochtime also represents the same value, but as an array with two elements.

Examples

Print $EPOCHSECONDS
1
2
zmodload zsh/datetime
echo $EPOCHSECONDS
BashSupport Pro 是一款支持 epochseconds** 的 **Zsh 集成开发环境 - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款