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

Function get_time

date.c:124–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124static void get_time(struct timeval *now)
125{
126 const char *x;
127
128 x = getenv("GIT_TEST_DATE_NOW");
129 if (x) {
130 now->tv_sec = atoi(x);
131 now->tv_usec = 0;
132 }
133 else
134 gettimeofday(now, NULL);
135}
136
137void show_date_relative(timestamp_t time, struct strbuf *timebuf)
138{

Callers 3

show_date_relativeFunction · 0.85
show_dateFunction · 0.85
approxidate_carefulFunction · 0.85

Calls 1

gettimeofdayFunction · 0.85

Tested by

no test coverage detected