[][src]Function iso8601::datetime

pub fn datetime(string: &str) -> Result<DateTime, String>

This parses a datetime string.

A datetime string is a combination of the valid formats for the date and time. separated by a literal T. See the respective functions for the correct format.

Example

let dt = iso8601::datetime("2015-11-03T21:56").unwrap();