$epochtime
–
Seconds and Nanoseconds Since the Epoch
$epochtime
is an array of two elements and contains the seconds since the epoch
and the remainder of nanoseconds.
Both values should be retrieved or copied at the same time to ensure consistent results.
Links
Examples
- Print seconds and nanoseconds
1 2
zmodload zsh/datetime echo $EPOCHSECONDS
BashSupport Pro ist eine Zsh IDE mit Unterstützung für $epochtime - probieren Sie es jetzt aus!