chrono icon indicating copy to clipboard operation
chrono copied to clipboard

Date and time library for Rust

Results 262 chrono issues
Sort by recently updated
recently updated
newest added

Could rewrite this to use ISO 8601 representation, which since 2019 allows negative durations, if preferred. However, parsing then is a little ambiguous wrt what to do about years/months.

This allows converting a floating point representation of millis/secs into durations, just like std::time::Duration has.

``` error[E0277]: the trait bound `chrono::Months: _::_serde::Serialize` is not satisfied --> src\main.rs:5:10 | 5 | #[derive(Serialize, Deserialize, Debug)] | ^^^^^^^^^ the trait `_::_serde::Serialize` is not implemented for `chrono::Months` ``` What...

## Description Would it be possible to support parsing of ISO 8601 datetime strings that use 24:00:00 to represent midnight? Currently, attempting to parse such a string results in an...

Supersedes #1614 Not sure what to do about CI as currently the features are incompatible with rkyv 0.7, but I could use fully qualified paths for `rkyv_08::Archive` etc and then...

Updates the requirements on [rkyv](https://github.com/rkyv/rkyv) to permit the latest version. Commits See full diff in compare view You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]:...

API-incompatible
dependencies
rust

Change to use [`core::error::Error`](https://doc.rust-lang.org/core/error/trait.Error.html) instead of [`std::error::Error`](https://doc.rust-lang.org/std/error/trait.Error.html). The MSRV is bumped up to 1.81.0 by this change.

I opened an old project that was using `time` crate. I have this code: ```rust let diff = end_date - start_date; let result = diff.to_string(); ``` and result there is...

Hi, I have a need to figure out how many (ISO) week numbers have passed between two dates. This is an error prone calculation. So if one date is in...

Hi, `NaiveWeek` has the convenience methods `first_day`, `last_day` and `days`. But these are not implemented on `IsoWeek`. There is a previous issue #654 that proposed adding these to `IsoWeek`, but...