Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
codetrotter
on Sept 17, 2023
|
parent
|
context
|
favorite
| on:
Hexadecimal clock counting down to 2038 problem
> 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
bloopernova
on Sept 17, 2023
[–]
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:
Is there any advantage to using that module instead of invoking
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