Skip to main content

Module countdown

Module countdown 

Source
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 - now as a short human string.