Get Milliseconds in Duration
Examples in
Go
package main
import (
"fmt"
"time"
)
func main() {
m, _ := time.ParseDuration("1m30s")
fmt.Printf("%d millseconds.", m.Milliseconds())
}
Last Run
:
90000 millseconds.