1
0
Fork 0
hugo/docs/content/en/methods/duration/Seconds.md

373 B

title description categories keywords action
Seconds Returns the time.Duration value as a floating point number of seconds.
related returnType signatures
functions/time/Duration
functions/time/ParseDuration
float64
DURATION.Seconds
{{ $d = time.ParseDuration "3.5h2.5m1.5s" }}
{{ $d.Seconds }} → 12751.5