MCPcopy Create free account
hub / github.com/NetHack/NetHack / hhmmss

Function hhmmss

src/calendar.c:79–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79long
80hhmmss(time_t date)
81{
82 long timenum;
83 struct tm *lt;
84
85 if (date == 0)
86 lt = getlt();
87 else
88 lt = localtime((LOCALTIME_type) &date);
89
90 timenum = lt->tm_hour * 10000L + lt->tm_min * 100L + lt->tm_sec;
91 return timenum;
92}
93
94char *
95yyyymmddhhmmss(time_t date)

Callers 2

dump_fmtstrFunction · 0.85
paniclogFunction · 0.85

Calls 2

getltFunction · 0.85
localtimeFunction · 0.85

Tested by

no test coverage detected