use crate::Time; use jiff::Zoned; /// Parse Git-style flexible date formats that aren't covered by standard strptime: /// - ISO8601 with dots: `2008.02.14 20:30:45 -0500` /// - Compact ISO8601: `20080214T203045`, `20080214T20:30:45`, `20080214T2030`, `20080214T20` /// - Z suffix for UTC: `1970-01-01 00:00:00 Z` /// - 2-digit hour offset: `2008-02-14 20:30:45 -05` /// - Colon-separated offset: `2008-02-14 20:30:45 -05:00` /// - Subsecond precision (ignored): `20080214T203045.019-04:00` // TODO: this can probably be done more smartly, right now it's more of a brute force. Learn from Git here. // After all, this is generated to have something quickly. pub fn parse_git_date_format(input: &str) -> Option