Get Seconds in Duration

Examples Filter
Seconds returns the duration as a floating point number of seconds.
package main

import (
	"fmt"
	"time"
)

func main() {
	m, _ := time.ParseDuration("1m30s")
	fmt.Printf("Take off in t-%.0f seconds.", m.Seconds())
}
Last Run  :
Take off in t-90 seconds.