Debian Codegraph @

docs/content/en/methods/duration/Seconds.md

raw
1 ---
2 title: Seconds
3 description: Returns the time.Duration value as a floating point number of seconds.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: float64
9 signatures: [DURATION.Seconds]
10 ---
11
12 ```go-html-template
13 {{ $d = time.ParseDuration "3.5h2.5m1.5s" }}
14 {{ $d.Seconds }} → 12751.5
15 ```