Skip to main content

Module duration

Module duration 

Source
Expand description

Go-compatible time.Duration::String() formatting.

Rust-side porting helper (not present in upstream bubbles): bubbletea’s stopwatch/timer components render durations via Go’s time.Duration formatting; this module replicates it exactly so example output matches byte-for-byte.

Functions§

duration_string
Renders the given duration using Go’s time.Duration.String() algorithm.