MCPcopy Create free account
hub / github.com/crawl/crawl / make_file_time

Function make_file_time

crawl-ref/source/stringutil.cc:609–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607}
608
609string make_file_time(time_t when)
610{
611 if (tm *loc = TIME_FN(&when))
612 {
613 return make_stringf("%04d%02d%02d-%02d%02d%02d",
614 loc->tm_year + 1900,
615 loc->tm_mon + 1,
616 loc->tm_mday,
617 loc->tm_hour,
618 loc->tm_min,
619 loc->tm_sec);
620 }
621 return "";
622}

Callers 4

_dgl_timestamp_filenameFunction · 0.85
crash_signal_handlerFunction · 0.85
morgue_nameFunction · 0.85
do_crash_dumpFunction · 0.85

Calls 1

make_stringfFunction · 0.85

Tested by

no test coverage detected