We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should provide a way to turn an integer into a time.Duration.
time.Duration
{{ $dur := time.Duration (mul time.Second $secs) }}
Will likely need Hour, Minute, Second, Microsecond, and Millisecond constants, as well.
See https://discourse.gohugo.io/t/replacing-existing-js-array-with-a-static-template/8051/5
The text was updated successfully, but these errors were encountered:
tpl/time: Add time.Duration and time.ParseDuration template funcs
bc5523c
And with time.Duration with the convenient alias `duration`: ``` {{ mul 60 60 | duration "second" }} ``` Fixes gohugoio#3828
5a44d29
ae79f03
f4bf214
And with time.Duration with the convenient alias `duration`: ``` {{ mul 60 60 | duration "second" }} ``` Fixes #3828
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sorry, something went wrong.
bep
Successfully merging a pull request may close this issue.
We should provide a way to turn an integer into a
time.Duration
.Will likely need Hour, Minute, Second, Microsecond, and Millisecond constants, as well.
See https://discourse.gohugo.io/t/replacing-existing-js-array-with-a-static-template/8051/5
The text was updated successfully, but these errors were encountered: