time
time copied to clipboard
The most used Rust library for date and time handling.
I've been manually inspecting the crater logs from the most-downloaded crates, and I think a lot of people don't realize how many published crates are skipped. This crate is skipped...
> serde_cbor is unmaintained | Details | | | ------------------- | ---------------------------------------------- | | Status | unmaintained | | Package | `serde_cbor` | | Version | `0.11.2` | | URL...
Hey! As someone who is not familiar with the domain, I am having a hard time deciding whether I should use chrono or time-rs. It would help a lot if...
Here's one simple suggestion that may increase user-friendliness of the crate by a huge margin: - Switch `Debug` implementations (e.g. for `Date` or `OffsetDateTime`) to user-friendly ones Current behaviour if...
Additional documentation that the format of display may change and should not be relied upon, as indicated as comment in #666
**Note**: There is no breaking change current planned. This issue is to keep track of things that _may_ happen when there is a breaking change at some undetermined point in...
When deserializing some data into a struct, `serde` doesn't care if an field with type `Option` is available in the source bytes or not. For example, the following code works...
as seen in https://github.com/tokio-rs/tracing/issues/2764 and https://github.com/Drakulix/simplelog.rs/issues/138 `time` does not properly return localtime on any version of openbsd. at best it returns nothing, at worst it crashes the app using the...
When generating an `OffsetDateTime` from a `js_sys::Date`, there are cases where the sub-millisecond components are not set to zero. This behavior is unexpected and can lead to inaccuracies in the...
I'm trying to parse a date in the format `YYMMDD`, e.g. `231022`. While this crate can parse `20231022`, it fails to parse `231022` ([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=554e9559a862d0983c51ebe68290cc6f)): ```rust use time::macros::{date, format_description}; use time::Date;...