Skip to main content

parse_date_in

Function parse_date_in 

Source
pub fn parse_date_in<Z: TimeZone>(
    s: &str,
    range_end: bool,
    zone: &Z,
) -> Result<DateTime<Utc>, String>
Expand description

Parse RFC3339 (full precision), YYYY-MM-DD, YYYY-MM-DDTHH:MM[:SS] or YYYY-MM-DD HH:MM (offset-free forms are UTC). A date-only value is the start of that day in zone, or, when range_end is set, the last microsecond (the finest instant Postgres stores) before the next local day starts.