Skip to main content

format_short_date_from_ident

Function format_short_date_from_ident 

Source
pub fn format_short_date_from_ident(ident: &str) -> String
Expand description

Format the author/committer date as YYYY-MM-DD in the commit’s local timezone.

Matches Git’s DATE_SHORT mode used by --pretty=reference (e.g. 2005-04-07).