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

Fixes https://github.com/chronotope/chrono/issues/117 This PR copy-pastes the current implementation for `DateTime` such that we have equal implementations for `DeltaTime`. I opted to add the logic to the existing `serde.rs` file. However,...

OpenHarmony's `tzdata` parsing supported was introduced in #1613. OpenHarmony's `tzdata` shares the same characters with the ones on Android, except that each timezone index is 4 byte's smaller(the [legacy `rawUtcOffset`](https://android.googlesource.com/platform/prebuilts/fullsdk/sources/+/refs/heads/androidx-appcompat-release/android-34/com/android/i18n/timezone/ZoneInfoDb.java#271)...

Stabilized in rust 1.81, behind a feature flag so as to not bump the current MSRV of 1.61. ### Thanks for contributing to chrono! If your feature is semver-compatible, please...

The documentation states that %S represents "Second number (00–60), zero-padded to 2 digits." Given this, I would expect the following behavior when parsing timestamps with `NaiveTime::parse_from_str`: ✅ Valid: "010233" with...

This PR updates the `rkyv` feature to support the 0.8 release line.

When attempting to format a `NaiveDate` with time-related/unsupported specifiers, the error message is not informative. For example: ```rust use chrono::NaiveDate; fn main() { let d = NaiveDate::from_ymd_opt(2015, 9, 5).unwrap(); let...

No error with chrono 0.4.39 and with 0.4.40: ``` Checking mongodb v3.2.2 error[E0034]: multiple applicable items in scope --> /Users/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-53.4.0/src/temporal.rs:91:36 | 91 | DatePart::Quarter => |d| d.quarter() as i32, |...

The uu_date command in [coreutils](https://github.com/uutils/coreutils/) uses chrono to parse the format string. In [#7334](https://github.com/uutils/coreutils/issues/7344) there is a report that it is needed to add the amount of padding to the...