Skip to content

docs: clarify dateModify duration syntax - #499

Open
andy1924 wants to merge 1 commit into
Masterminds:masterfrom
andy1924:docs/date-modify-duration-syntax
Open

andy1924 wants to merge 1 commit into
Masterminds:masterfrom
andy1924:docs/date-modify-duration-syntax

Conversation

@andy1924

@andy1924 andy1924 commented Nov 9, 2026

Copy link
Copy Markdown

The dateModify example uses the date_modify alias, and the docs leave supported duration units implicit. Use dateModify consistently, link the Go duration syntax, explain how to subtract 24 hours, and clarify how both functions handle invalid inputs such as "-1d".

Fixes #422. Related #431 is closed and unmerged.

Verified the documented units and invalid-input behavior through TxtFuncMap templates. TZ=UTC GOTOOLCHAIN=go1.24.4 go test -cover . passes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dateModify example wrong

1 participant