12 releases (6 breaking)

0.6.1 Feb 12, 2023
0.5.1 Nov 9, 2022
0.5.0 Jul 29, 2022
0.4.1 Nov 21, 2021
0.1.1 Nov 16, 2015

#35 in Parser implementations

Download history 104511/week @ 2024-03-14 105325/week @ 2024-03-21 109115/week @ 2024-03-28 181912/week @ 2024-04-04 144041/week @ 2024-04-11 178501/week @ 2024-04-18 146366/week @ 2024-04-25 133218/week @ 2024-05-02 136317/week @ 2024-05-09 145955/week @ 2024-05-16 140776/week @ 2024-05-23 215462/week @ 2024-05-30 161942/week @ 2024-06-06 275513/week @ 2024-06-13 153067/week @ 2024-06-20 131208/week @ 2024-06-27

756,794 downloads per month
Used in 205 crates (24 directly)

MIT license

54KB
1.5K SLoC

omnomnom - Eating Parsing ISO8601 dates using nom

crates.io docs.rs docs License: MIT Build status

omnomnom

let datetime = iso8601::datetime("2015-06-26T16:43:23+0200").unwrap();

// the above will give you:
DateTime {
    date: Date::YMD {
        year: 2015,
        month: 6,
        day: 26,
    },
    time: Time {
        hour: 16,
        minute: 43,
        second: 23,
        tz_offset_hours: 2,
        tz_offset_minutes: 0,
    },
};

Still rough around the edges, though it won't fail with timezone offsets of half an hour anymore. It's also safe for kittens now.

Documentation

Documentation is online.

License

MIT Licensed. See LICENSE

Dependencies

~0.9–1.6MB
~28K SLoC