mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-06-18 11:29:51 +00:00
13 lines
343 B
Go
13 lines
343 B
Go
package time // import "github.com/docker/docker/api/types/time"
|
|
|
|
import (
|
|
"strconv"
|
|
"time"
|
|
)
|
|
|
|
// DurationToSecondsString converts the specified duration to the number
|
|
// seconds it represents, formatted as a string.
|
|
func DurationToSecondsString(duration time.Duration) string {
|
|
return strconv.FormatFloat(duration.Seconds(), 'f', 0, 64)
|
|
}
|