Any interest in adding support for arbitrary precision?
I imagine something like,
func (cfg Config) FormatPrecise(duration time.Duration, precision time.Duration) string
FormatPrecise(60 * time.Second, time.Second) == "60 seconds"
FormatPrecise(60 * time.Second, time.Minute) == "1 minute"
FormatPrecise(90 * time.Second, time.Second) == "1 minute and 30 seconds"
FormatPrecise(12345 * time.Second, time.Second) == "3 hours, 25 minutes, and 45 seconds"
Or perhaps for the sake of cross-language grammar simplicity, just 3 hours 25 minutes 45 seconds.
Alternatively this could be part of Config.
Any interest in adding support for arbitrary precision?
I imagine something like,
Or perhaps for the sake of cross-language grammar simplicity, just
3 hours 25 minutes 45 seconds.Alternatively this could be part of Config.