Function iso8601::datetime

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

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();