format

package
v0.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(seconds float64) string

FormatDuration formats a duration in seconds using RSpec's adaptive precision rules: - < 1 second: up to 5 decimal places (trailing zeros removed) - 1-119 seconds: up to 2 decimal places (trailing zeros removed) - 120-299 seconds: 1 decimal place - >= 300 seconds: no decimal places - > 60 seconds: formatted as "X minutes Y seconds"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL