boa-dev / temporal

A Rust implementation of ECMAScript's Temporal API
Apache License 2.0
26 stars 4 forks source link

Implement compare functionality and some more traits #82

Closed nekevss closed 4 months ago

nekevss commented 4 months ago

This adds some compare functions to Date and DateTime, and Ordering for ZonedDateTime.

The compare functions are notably different from Eq and PartialEq as they compare the internal ISO representation ignoring the Calendar