Skip to main content

Module time

Module time 

Source
Expand description

Time formatting and OID helpers.

Functions§

fmt_oid
Format a git2::Oid as a full hex string.
relative_time
Return a human-friendly relative-time string for the given UTC timestamp.
short_oid
Format a git2::Oid as an abbreviated hex string (first 7 characters).
short_oid_str
Abbreviate a hex OID string to the first 7 characters.