MCPcopy Index your code
hub / github.com/git/git / date_string

Function date_string

date.c:835–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835static void date_string(timestamp_t date, int offset, struct strbuf *buf)
836{
837 int sign = '+';
838
839 if (offset < 0) {
840 offset = -offset;
841 sign = '-';
842 }
843 strbuf_addf(buf, "%"PRItime" %c%02d%02d", date, sign, offset / 60, offset % 60);
844}
845
846/*
847 * Parse a string like "0 +0000" as ancient timestamp near epoch, but

Callers 2

parse_dateFunction · 0.85
datestampFunction · 0.85

Calls 1

strbuf_addfFunction · 0.85

Tested by

no test coverage detected