Skip to content

parse_datetime

In std/time.

fn parse_datetime(self: String, pattern: String) : Option<DateTime>

self read through a strftime pattern as a DateTime, or none.

fn parse_datetime(self: String) : Option<DateTime>

self read as an ISO 8601 date-time with no offset, or none: with no pattern, parse_datetime is to_datetime.