Skip to main content

parse_time

Function parse_time 

Source
pub fn parse_time(
    value: &str,
    now: DateTime<Utc>,
) -> Result<DateTime<Utc>, String>
Expand description

Parses an RFC 3339 timestamp or a relative age such as 30m, 1h, 7d (before now).