chrono_parser 0.1.0

Parser extension on the top of chrono
Documentation
  • Coverage
  • 0%
    0 out of 22 items documented0 out of 1 items with examples
  • Size
  • Source code size: 27.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.79 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 24s Average build duration of successful builds.
  • all releases: 24s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • PumpkinSeed/chrono-parser
    3 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • PumpkinSeed

chrono parser

Date, time parser in any format. Recognize the format and parse to DateTime<FixedOffset>.

Known formats:

  • RFC1123
  • RFC1123Z
  • RFC822
  • RFC822Z
  • RFC3339_NANO
  • ANSI_C
  • UNIX_FORMAT
  • RUBY_FORMAT
  • RFC850

Usage

use chrono_parser::datetime;

fn main() {
    match datetime("02 Jan 06 15:04 -0700".to_string()) {
        Ok(v) => {...}
        Err(err) => panic!("{}", err.to_string()),
    }
}