Expand description
Human-readable countdown between two instants.
Mirrors claudebar’s countdown() shell function (claudebar:252-268):
- missing / unparseable reset →
"—" - reset already in the past →
"now" - ≥1 day remaining →
"{d}d {h}h" - otherwise →
"{h}h {mm}m"(zero-padded minutes)
Functions§
- format
- Format
reset - nowas a short human string.