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

This adds support for `defmt` behind a cargo feature.

The following runs fine: ```rust use chrono::{DateTime}; fn main() { let parse_from_str = DateTime::parse_from_str; let ts = "2000-01-01T01:23+01:00"; let fmt = "%Y-%m-%dT%H:%M%z"; let parsed = parse_from_str(ts, fmt); println!("{:?}", parsed); }...

parsing

I find myself in the situation where I need to parse ISO weeks quite frequently. Especially when it comes to "manufacturing dates", which are very often given as iso weeks...

This PR aims to resolve issue #560 and #1399 based on PR #561, and the multiple issues from vector such as https://github.com/vectordotdev/vrl/issues/117, https://github.com/vectordotdev/vrl/issues/790 Since there is no any respones from...

- Add impls for the main structs where it is obvious how to do so - Gate this behind a new cargo feature called "defmt"

`%::z` is defined as: > Offset from the local time to UTC with seconds. So it seems like we should support this better? Fixes #1629.

Trying to parse a string with TZ-Information including seconds (+00:00:00) fails (see below 3rd element in the vector). ``` use chrono::DateTime; // chrono 0.4.38 fn main() { // from ......

When Local::now() is called 10,000 times in a single thread, it barely takes any time. However, when called in a multithreaded environment, it takes significantly more time. Below is the...

### Tests NaiveDateTime panics when year greater than 9999

The handling of Local timezones includes code to parse both timezone information files and Posix timezone strings. This code is currently driven from either a TZ environment variable or a...