MCPcopy Create free account
hub / github.com/ZDoom/Raze / myasctime

Function myasctime

source/common/utility/cmdlib.cpp:473–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471//==========================================================================
472
473const char *myasctime ()
474{
475 static char readabletime[50];
476 time_t clock;
477 struct tm *lt;
478
479 time (&clock);
480 lt = localtime (&clock);
481 if (lt != NULL)
482 {
483 strftime(readabletime, 50, "%F %T", lt);
484 return readabletime;
485 }
486 else
487 {
488 return "Unknown\n";
489 }
490}
491
492//==========================================================================
493//

Callers 6

WriteSavegameFunction · 0.85
M_AutosaveFunction · 0.85
CCMDFunction · 0.85
execLogfileFunction · 0.85
UNSAFE_CCMDFunction · 0.85
NotifyNewSaveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected