| Crates.io | iso8601 |
| lib.rs | iso8601 |
| version | 0.6.3 |
| created_at | 2015-11-03 12:19:09.8178+00 |
| updated_at | 2025-05-15 21:03:56.318466+00 |
| description | Parsing ISO8601 dates using nom |
| homepage | |
| repository | https://github.com/badboy/iso8601 |
| max_upload_size | |
| id | 3357 |
| size | 111,399 |

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 is online.
MIT Licensed. See LICENSE