This website requires JavaScript.
Explore
Sign In
mirror
/
hugo
mirror of
https://github.com/gohugoio/hugo
Watch
1
Star
0
Fork
You've already forked hugo
0
Code
Issues
release-0.146.6
hugo
/
docs
/
content
/
en
/
methods
/
duration
/
Seconds.md
326 B
Raw
Permalink
Blame
History
title
description
categories
keywords
params
Seconds
Returns the time.Duration value as a floating point number of seconds.
functions_and_methods
returnType
signatures
float64
DURATION.Seconds
{{
$d
=
time
.ParseDuration
"3.5h2.5m1.5s"
}}
{{
$d
.Seconds
}}
→ 12751.5