Skip to content
New issue

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

Add durationformat(duration, string) function. #1992

Merged

Conversation

NotNotQuinn
Copy link
Contributor

This pull request adds the following function to DQL with documentation:

  • durationformat(duration, string) = duration.toFormat(string)

I tested it locally and seems to be working exactly as intended.

Quinn added 2 commits July 15, 2023 05:54
Uses luxon.Duration.toFormat` function.
@blacksmithgu
Copy link
Owner

blacksmithgu commented Sep 15, 2023

You'll need to add it to the list of default functions at the bottom for it to show up in DataviewQL as well.

@blacksmithgu blacksmithgu merged commit 269c323 into blacksmithgu:master Sep 15, 2023
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.

2 participants