Skip to content

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

@vercel
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