Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> EPOCHSECONDS relies on `zmodload zsh/datetime`

Is there any advantage to using that module instead of invoking

    date +%s
I use zsh but I don’t have any addons installed or anything. So for me it is less work to call date +%s instead


Yes, it doesn't fork a separate process. I doubt I could really tell the difference in prompt responsiveness, but I liked learning about the printf -v COMMA_EPOCH method.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: