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

feature: diff & add functions #69

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Conversation

WilcoSp
Copy link
Contributor

@WilcoSp WilcoSp commented Aug 14, 2024

This PR is stacked on PR #58

The diff & add function I had mentioned before at #66 (comment)

This PR adds the following:

  • diff function which takes 1/2 date(s) + optional options to return an object which can be used with Intl.DurationFormat.prototype.format()
  • add function which takes optionally a date, a DurationObj & optional a boolean to overflow the date to the next month, to return a new Date object

Copy link

vercel bot commented Aug 14, 2024

@WilcoSp is attempting to deploy a commit to the Formkit Team on Vercel.

A member of the Team first needs to authorize it.

@WilcoSp WilcoSp changed the title feature: diff function feature: diff & add functions Aug 14, 2024
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.

1 participant