mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 16:42:15 +01:00
11 lines
189 B
Go
11 lines
189 B
Go
package xtime
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Duration creates a time.Duration from seconds.
|
|
func Duration(seconds float64) time.Duration {
|
|
return time.Duration(1000*seconds) * time.Millisecond
|
|
}
|