Skip to main content

parse_point

Function parse_point 

Source
pub fn parse_point(
    s: &str,
    tz: Tz,
    end_of_day: bool,
) -> Result<DateTime<Utc>, String>
Expand description

Parse a single timestamp: RFC 3339, a naive YYYY-MM-DDTHH:MM:SS or YYYY-MM-DDTHH:MM (interpreted in tz), or a bare YYYY-MM-DD date (interpreted as local midnight, or the following local midnight when end_of_day is set, making the date inclusive).