astronomy: implement stub
astronomy: implement stub: a task in smol-software-harbor (Harbor dataset). format duration() in astro/units.py is still a stub (it raises NotImplementedError ), so astro.planets.describe() crashes. Implement it exactly as its docstring describes, e.g. format duration(3725) == "1 h 2 min 5 s" …
The task
`format_duration()` in `astro/units.py` is still a stub (it raises `NotImplementedError`), so `astro.planets.describe()` crashes. Implement it exactly as its docstring describes, e.g. `format_duration(3725) == "1 h 2 min 5 s"`, `format_duration(499.0) == "8 min 19 s"`, `format_duration(0.4) == "0 s"`. Run `python3 -m…
Part of efederici/smol-software-harbor.