$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 是一款支持 epochtime** 的 **Zsh 集成开发环境 - 立即试用!