tempo
tempo copied to clipboard
feature: diff & add functions
This PR is stacked on PR https://github.com/formkit/tempo/pull/58
The diff & add function I had mentioned before at https://github.com/formkit/tempo/pull/66#issuecomment-2263626679
This PR adds the following:
-
difffunction which takes 1/2 date(s) + optional options to return an object which can be used with Intl.DurationFormat.prototype.format() -
addfunction which takes optionally a date, a DurationObj & optional a boolean to overflow the date to the next month, to return a new Date object
@WilcoSp is attempting to deploy a commit to the Formkit Team on Vercel.
A member of the Team first needs to authorize it.