Skip to content

parse_instant

In std/time.

fn parse_instant(self: String, pattern: String) : Option<Instant>

self read through a strftime pattern as an Instant, or none; the pattern writes an offset with %z or a zone with %Z.

fn parse_instant(self: String) : Option<Instant>

self read as an RFC 3339 instant, or none: with no pattern, parse_instant is to_instant.