Skip to content

Conversation

@aheissenberger
Copy link

This request fixes the missing possibility to add and subtract DateTimeDuration.
xs:dateTime("1970-01-01T00:00:00Z") + xs:dayTimeDuration("P15DT11H59M59S")

@bundlemon
Copy link

bundlemon bot commented Aug 5, 2025

BundleMon

Files updated (2)
Status Path Size Limits
fontoxpath.esm.js
79.06KB (+349B +0.43%) -
fontoxpath.js
78.94KB (+344B +0.43%) -

Total files change +693B +0.43%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@DrRataplan
Copy link
Contributor

Hey @aheissenberger,

Thanks so much! This looks awesome!

@bwrrp do you have some bandwidth to check this out? Assuming CI is green I'm 100% OK with the approach taken!

@coveralls
Copy link

Coverage Status

coverage: 91.572% (-0.004%) from 91.576%
when pulling a8664b3 on aheissenberger:master
into d5ac004 on FontoXML:master.

}

public negate(): this {
return new (this.constructor as any)(-this.seconds);
Copy link
Member

@bwrrp bwrrp Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assumes any subclass uses the same argument for its constructor - why not use the class itself directly?

Copy link
Member

@bwrrp bwrrp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome contribution, thank you so much! I've left a minor comment on the use of constructors in the negate methods, but this looks good to merge!

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.

4 participants