$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 is a Zsh IDE with support for $EPOCHREALTIMEtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal