$EPOCHREALTIME  –  Number of Seconds Since The Epoch

$EPOCHREALTIME represents the number of seconds since the epoch as floating point value.

$EPOCHSECONDS contains the same value, but as an integer. $epochtime also represents the same value, but as an array with two elements.

Examples

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