MCPcopy Create free account
hub / github.com/catboost/catboost / GetLocalTimeSSimple

Function GetLocalTimeSSimple

library/cpp/logger/global/common.cpp:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5namespace NLoggingImpl {
6 TString GetLocalTimeSSimple() {
7 struct tm tm;
8 return Strftime("%b%d_%H%M%S", Now().LocalTime(&tm));
9 }
10
11 TString PrepareToOpenLog(TString logType, const int logLevel, const bool rotation, const bool startAsDaemon) {
12 Y_ENSURE(logLevel >= 0 && logLevel <= (int)LOG_MAX_PRIORITY, "Incorrect log level");

Callers 1

PrepareToOpenLogFunction · 0.85

Calls 3

StrftimeFunction · 0.85
NowFunction · 0.50
LocalTimeMethod · 0.45

Tested by

no test coverage detected