$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.
Links
Examples
- Print
$EPOCHREALTIME
1 2
zmodload zsh/datetime echo $EPOCHREALTIME
BashSupport Pro is a Zsh IDE with support for $EPOCHREALTIME – try it now!