MCPcopy Create free account
hub / github.com/git/git / date_time

Function date_time

date.c:1143–1154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1141}
1142
1143static void date_time(struct tm *tm, int hour)
1144{
1145 /*
1146 * If we do not yet have a specified day, we'll use the most recent
1147 * version of "hour" relative to now. But that may be yesterday.
1148 */
1149 if (tm->tm_mday < 0 && tm->tm_hour < hour)
1150 tm->tm_mday = -2; /* eventually handled by update_tm() */
1151 tm->tm_hour = hour;
1152 tm->tm_min = 0;
1153 tm->tm_sec = 0;
1154}
1155
1156static void date_midnight(struct tm *tm, struct tm *now UNUSED, int *num)
1157{

Callers 4

date_midnightFunction · 0.85
date_noonFunction · 0.85
date_teaFunction · 0.85
date_todayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected