time icon indicating copy to clipboard operation
time copied to clipboard

The most used Rust library for date and time handling.

Results 32 time issues
Sort by recently updated
recently updated
newest added

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...

E-help-wanted 📣
A-docs

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,...

C-feature-request
A-formatting
A-parsing

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...

C-feature-request
A-parsing

This PR exposes the internal max/min values for `Time`. These are useful for building ranges.

C-feature-request
A-core

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...

C-feature-request
A-formatting
A-parsing

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...

C-question

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...

C-enhancement
A-third-party

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...

C-bug
A-docs

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...