hugo/docs/content/en/methods/duration/Seconds.md
2023-12-04 15:24:01 +01:00

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