time
time copied to clipboard
The most used Rust library for date and time handling.
The main `time` crate can be moved to `time-core`, while the formatting and parsing mechanism (including parsing format descriptions) can be moved to the `time-formatting` crate. At that point, the...
Thank you for maintaining the `time` crate! I recently migrated the Azure for SDK to it from the `chrono` crate. I like the design of `time:OffsetDateTime` much more than `chrono::DateTime`....
This book https://time-rs.github.io/book has almost nothing in it. Is it complete?
RFC3339 `Option` parsing does not work for flattened structures. Example to reproduce: ```rust use serde::{Deserialize, Serialize}; use time::OffsetDateTime; #[derive(Serialize, Deserialize)] struct Nested { #[serde(default, with = "time::serde::rfc3339::option")] v1: Option, #[serde(default,...
I am porting my program from `chrono` to `time`. One thing I am stuck with is serializing a `Vec` with the `rfc3339` format. This seems like a small but very...
I just come on a error on parsing with `time` that it doesn't regonized the type of microsoft's JSON used date. A example is: ``` /Date(151708196000)/ ``` The `/Date(` and...
Simple (and the most common, I believe) use case - you're implementing `Display` or `Debug` for your type containing some time objects, and you are provided with [`std::fmt::Formatter`](https://doc.rust-lang.org/std/fmt/struct.Formatter.html) which [implements](https://doc.rust-lang.org/std/fmt/struct.Formatter.html#impl-Write)...
tzdb support
This is a general tracking issue for all support related to the [IANA Time Zone database](https://www.iana.org/time-zones). At some point in the future, my hope is to have full support for...
I'm parsing a rfc3339-ish format with some flexibility (and UTC/Local offset selected out of band). I've ended up with the following incantation: ```rust use time::{ format_description::{modifier::*, Component, FormatItem::*}, parsing::Parsed, };...
I'd like to have an API where clients can pass in a format string, it'll get parsed once, and the resulting `Vec>, } impl { fn new(format_string: &'a str) ->...