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

Function time_to_tm

date.c:73–77  ·  view source on GitHub ↗

* The "tz" thing is passed in as this strange "decimal parse of tz" * thing, which means that tz -0100 is passed in as the integer -100, * even though it means "sixty minutes off" */

Source from the content-addressed store, hash-verified

71 * even though it means "sixty minutes off"
72 */
73static struct tm *time_to_tm(timestamp_t time, int tz, struct tm *tm)
74{
75 time_t t = gm_time_t(time, tz);
76 return gmtime_r(&t, tm);
77}
78
79static struct tm *time_to_tm_local(timestamp_t time, struct tm *tm)
80{

Callers 1

show_dateFunction · 0.85

Calls 2

gm_time_tFunction · 0.85
gmtime_rFunction · 0.85

Tested by

no test coverage detected