Parsing ISO8601 dates using nom
https://docs.rs/iso8601/
- Rust 100%
| .github/workflows | ci: add semver checks | |
| docs | fix(dep): update to nom 8 | |
| fuzz | Add roundtrip fuzzer | |
| src | fix: use millisecond when converting to chrono | |
| tests | Reformat & clippy applied | |
| .gitignore | simplified | |
| Cargo.toml | chore: Release iso8601 version 0.6.3 | |
| CHANGELOG.md | chore: Release iso8601 version 0.6.3 | |
| LICENSE | Add License, co-author and other metadata | |
| Makefile | Test using makefile | |
| README.md | Fix build badge | |
| release.toml | default branch was renamed a while ago | |
omnomnom - (削除) Eating (削除ここまで) Parsing ISO8601 dates using nom
crates.io docs.rs docs License: MIT Build status
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