ngx-moment
datetime-rs
Our great sponsors
ngx-moment | datetime-rs | |
---|---|---|
1 | 1 | |
1,174 | 25 | |
- | - | |
0.0 | 0.0 | |
8 months ago | almost 10 years ago | |
TypeScript | Rust | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ngx-moment
-
You don't (may not) need Moment.js
Yep, indeed there are ways to migrate, but it's not necessarily easy. For instance in my last project, we used moment-timezone, and integrated other libraries such as https://github.com/urish/ngx-moment to format date/times in component templates. Of course it's possible to move away from that, but it would take time away from more useful work.
datetime-rs
-
You don't (may not) need Moment.js
Yep! Most examples in the Rust cookbook[0] uses chrono[1].
But note that before Chrono there were other time libraries; one of them was called time[2] - IIRC it was created from code removed from Rust's stdlib std::time[3]. It eventually proved to be the best decision: designing a good API is a hard effort, and any design was prone to have mistakes and warts.
Chrono provides interoperability with both std::time and the time crate. It acknowledges other datetime crates that it was inspired, like datetime-rs[3] which itself was inspired by Joda time.
[0] https://rust-lang-nursery.github.io/rust-cookbook/datetime.h...
[1] https://crates.io/crates/chrono
[2] https://crates.io/crates/time
[3] https://github.com/depp/datetime-rs
What are some alternatives?
dayjs - ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
You-Dont-Need-Momentjs - List of functions which you can use to replace moment.js + ESLint Plugin
vo
Sherlock - Natural-language event parser for Javascript
js-joda - :clock2: Immutable date and time library for javascript
proposal-temporal-v2 - Future additions to Temporal
cv - Tony Narlock's Resume (React)