{"repo":"BurntSushi/jiff","free":true,"listed":false,"github":"https://github.com/BurntSushi/jiff","clone":"git clone https://github.com/BurntSushi/jiff.git","description":"A datetime library for Rust that encourages you to jump into the pit of success.","language":"Rust","stars":2877,"topics":["calendar","civil","date","date-time","datetime","duration","iana","iso8601","jiff","local"],"license":"Unlicense","category":"productivity","readme_excerpt":"Jiff ==== Jiff is a datetime library for Rust that encourages you to jump into the pit of success. The focus of this library is providing high level datetime primitives that are difficult to misuse and have reasonable performance. Jiff supports automatic and seamless integration with the Time Zone Database, DST aware arithmetic and rounding, formatting and parsing zone aware datetimes losslessly, opt-in Serde support and a whole lot more. Jiff takes enormous inspiration from [Temporal], which is a [TC39] proposal to improve datetime handling in JavaScript. Dual-licensed under MIT or the UNLICENSE. [TC39]: https://tc39.es/ [Temporal]: https://tc39.es/proposal-temporal/docs/index.html Documentation API documentation on docs.rs Comparison with chrono , time , hifitime and icu The API design rationale for Jiff Platform support CHANGELOG Example Here is a quick example that shows how to parse a typical RFC 3339 instant, convert it to a zone aware datetime, add a span of time and losslessly print it: There are many more examples in the documentation. Usage Jiff is on crates.io and can be used by adding jiff to your dependencies in your project's Cargo.toml . Or more simply, just run cargo add jiff . Here is a complete example that creates a new Rust project, adds a dependency on jiff , creates the source code for a simple datetime program and then runs it. First, create the project in a new directory: Second, add a dependency on jiff : Third, edit src/main.rs . Delete what's there ","default_branch":null,"files":null,"tree":[],"storefront":"/r/BurntSushi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BurntSushi/jiff/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}