formatUptime

fun formatUptime(seconds: Int): String(source)

Formats a duration in seconds as a human-readable uptime string (e.g., "1d 2h 3m 4s").

Return

A formatted uptime string.

Parameters

seconds

The duration in seconds.