chrono
chrono copied to clipboard
Date and time library for Rust
I need to define a field for one of my types with a collection/list of datetimes which have different timezone types. E.g.: I need something like: ```rust struct MyStuff {...
This is a version of https://github.com/chronotope/chrono/pull/809 that targets `0.4.x`
First some past commentary: Chrono RFC's: https://github.com/chronotope/chrono-rfcs/blob/master/notes/api-issues.md https://github.com/chronotope/chrono-rfcs/issues/1 https://github.com/chronotope/chrono-rfcs/issues/3 https://github.com/chronotope/chrono/issues/204 > ...which will allow us to deprecate Date and rename NaiveDate to Date, over a couple releases. I think #204...
This patch configures CI to assert that `cargo test --no-default-features` also passes (in addition to the default combinatoric feature matrix). An additional commit is included that fixes the existing errors...
Many constructors in `chrono` has the behavior to panic on invalid inputs. This issue proposes to systematically change this behavior to instead make use of fallible constructors which in effect...
be exact about whitespace Be exact about whitespace in parsing. This changes pattern matching in `format::parse::parse` as it does not allow arbitrary whitespace before, after, or between the datetime specifiers....
Travis CI support was removed in #436 but there are still some leftover references remaining in the project. https://github.com/chronotope/chrono/blob/3467172c31188006147585f6ed3727629d642fed/Makefile#L25 https://github.com/chronotope/chrono/blob/17d8c2af865f14b83154a0112f372fcf1718b481/Cargo.toml#L12
### Thanks for contributing to chrono! Please consider adding a test to ensure your bug fix/feature will not break in the future. This PR adds additional checks for the `AlternateTime`...
`NaiveTime` contains two integer fields, both with a restricted range: - `secs`, the second of the day, is less than 86,400. - `frac` is used for two things. To store...