Skip to main content

## format_time_seconds_long

# Function format_time_seconds_long

Source

    pub fn format_time_seconds_long(seconds: f64) -> String

Expand description

Format time in seconds to HH:MM:SS or MM:SS display string

Automatically chooses format based on duration:

- Less than 1 hour: Returns MM:SS format
- 1 hour or more: Returns HH:MM:SS format

## §Arguments

- `seconds` - Time in seconds

## §Returns

Formatted string like “1:23:45” or “3:45”