datetime-rs
vo
datetime-rs | vo | |
---|---|---|
1 | 1 | |
25 | 4 | |
- | - | |
0.0 | 0.0 | |
almost 10 years ago | about 2 years ago | |
Rust | TypeScript | |
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.
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
vo
-
You don't (may not) need Moment.js
I've build a library to do that (based on various known techniques) in [1]; it's also combined with validation based on zod. I would say it's usable but of course having true nominal type support in TypeScript would be way better.
[1]: https://github.com/renke/vo/tree/master/packages/vod
What are some alternatives?
You-Dont-Need-Momentjs - List of functions which you can use to replace moment.js + ESLint Plugin
ngx-moment - moment.js pipes for Angular
Sherlock - Natural-language event parser for Javascript
js-joda - :clock2: Immutable date and time library for javascript
dayjs - ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
proposal-temporal-v2 - Future additions to Temporal