time
time copied to clipboard
The most used Rust library for date and time handling.
While I executed fuzzing, I faced some panics by `expect`. Though those are intentional crash, I think it's better to mention on docs as well. [Some of APIs](https://docs.rs/time/0.3.28/time/struct.Date.html#method.prev_occurrence) are already...
Hi, `bson` enables the "large-dates" feature, which means that when you add it to your crate, everything that parsed some `time::PrimitiveDateTime`s using the plain version of `time` will potentially break,...
I use `time` in my [rsspls](https://github.com/wezm/rsspls) project (thanks!). It's a tool that uses CSS selectors to extract parts of web pages and build an RSS feed from them. `time` is...
This PR exposes the internal max/min values for `Time`. These are useful for building ranges.
It should be possible to make `format` methods localizable by passing a struct `Localization` with the month and weekday names. This struct is passed down to `fmt_month` and `fmt_weekday` methods...
I wanna map "non-offset" strings against `OffsetDatetime`. I tried (sorry not provided Rust Playground links, but seems it lacks some features): ```rust use time; time::serde::format_description!(serde_datetime, OffsetDateTime, time::format_description::well_known::Iso8601.DATE_TIME); ``` But I...
A majority of folks using derives for `Serialize/Deserialize` are likely trying to write REST APIs for json output. There exists a wonderful set of deserializers for RFC3339, ISO 8601, and...
This addresses the problem that the Duration's sign will "disappear" both during serialization and deserialization of sub-second Durations.
Was annoyed when Rust compiler couldn't find `OffsetDateTime::parse` method, when it turns out it's only available when feature `parsing` enabled. Typically, in documentation there is note like "available only with...
The issue is here: https://github.com/time-rs/time/blob/aca5c3652aff6fc7df3fbd8591c3e324d3a6ffb2/time/src/serde/mod.rs#L257 When feature `serde_human_readable` is enabled, the serializing code incorrectly assumes that for a sub-second negative duration, the `self.whole_seconds()` will provide the sign during printing. Similar...