1
0
Fork
You've already forked iso8601
0
Parsing ISO8601 dates using nom https://docs.rs/iso8601/
  • Rust 100%
2025年05月15日 23:03:54 +02:00
.github/workflows ci: add semver checks 2025年02月02日 14:59:16 +01:00
docs fix(dep): update to nom 8 2025年01月29日 00:19:45 +01:00
fuzz Add roundtrip fuzzer 2017年11月06日 15:58:47 +01:00
src fix: use millisecond when converting to chrono 2025年05月14日 10:40:55 +02:00
tests Reformat & clippy applied 2022年07月29日 23:10:56 +02:00
.gitignore simplified 2015年10月27日 19:16:23 +01:00
Cargo.toml chore: Release iso8601 version 0.6.3 2025年05月15日 23:03:27 +02:00
CHANGELOG.md chore: Release iso8601 version 0.6.3 2025年05月15日 23:03:54 +02:00
LICENSE Add License, co-author and other metadata 2015年11月03日 21:49:20 +01:00
Makefile Test using makefile 2015年06月29日 23:59:15 +02:00
README.md Fix build badge 2023年02月11日 13:29:45 +01:00
release.toml default branch was renamed a while ago 2022年07月29日 23:32:41 +02:00

omnomnom - (削除) Eating (削除ここまで) Parsing ISO8601 dates using nom

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

omnomnom

let datetime = iso8601::datetime("2015年06月26日T16: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