1 unstable release

0.0.1 Feb 19, 2022

#20 in #temporal


Used in temporal_intl

MIT/Apache

585KB
9K SLoC

C 6.5K SLoC // 0.2% comments Rust 1.5K SLoC // 0.0% comments AWK 694 SLoC // 0.2% comments Korn shell 446 SLoC // 0.1% comments Perl 42 SLoC // 0.1% comments Shell 25 SLoC // 0.2% comments

temporal-rs

Intl-first date and time library for rust

Based on ECMAScript's Temporal API

Designing a full featured date time library is hard, which is why standard library doesn't provide it. Temporal is a new date time library for JS, which is being standardized for years (not finished yet). It is designed with the experience from previous efforts and it supports multiple calendars, timezones and DST, arithmetic of those, all with corner cases considered, and compatible and interoperable with other systems by using standards such as iso8601 and RFC 5545 (iCalendar). So it make sense to follow their decisions closely.

But there is some difference, for making this library more rust friendly. See the differences.

How to use

There is a cookbook, contains examples of common tasks.

Dependencies

~3.5MB
~74K SLoC