6 releases (breaking)

0.4.0 Feb 27, 2020
0.3.0 Jan 31, 2019
0.2.0 Nov 6, 2017
0.1.1 Nov 16, 2015
0.0.1 Nov 3, 2015
Download history 1131/week @ 2021-07-02 1419/week @ 2021-07-09 1314/week @ 2021-07-16 1285/week @ 2021-07-23 1074/week @ 2021-07-30 1190/week @ 2021-08-06 1406/week @ 2021-08-13 1257/week @ 2021-08-20 976/week @ 2021-08-27 1115/week @ 2021-09-03 1472/week @ 2021-09-10 1056/week @ 2021-09-17 1186/week @ 2021-09-24 1779/week @ 2021-10-01 1512/week @ 2021-10-08 1667/week @ 2021-10-15

8,649 downloads per month
Used in 24 crates (12 directly)

MIT license

29KB
685 lines

omnomnom - Eating Parsing ISO8601 dates using nom

crates.io 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

~705KB
~14K SLoC