Lines Matching refs:tmPtr
93 struct tm* tmPtr {nullptr}; in GetLogFileName() struct
94 tmPtr = localtime(&now); in GetLogFileName()
95 if (tmPtr == nullptr) { in GetLogFileName()
102 ss << std::to_string(tmPtr->tm_year + yearStart) << "."; in GetLogFileName()
103 ss << std::to_string(tmPtr->tm_mon + monthStart) << "."; in GetLogFileName()
104 ss << std::to_string(tmPtr->tm_mday) << "_"; in GetLogFileName()
105 ss << std::to_string(tmPtr->tm_hour) << "."; in GetLogFileName()
106 ss << std::to_string(tmPtr->tm_min) << "."; in GetLogFileName()
107 ss << std::to_string(tmPtr->tm_sec) << ".hhlog"; in GetLogFileName()
115 struct tm* tmPtr {nullptr}; in GetFormatTime() struct
116 tmPtr = localtime(&now); in GetFormatTime()
117 if (tmPtr == nullptr) { in GetFormatTime()
123 ss << std::to_string(tmPtr->tm_year + yearStart) << "-"; in GetFormatTime()
124 ss << std::to_string(tmPtr->tm_mon + monthStart) << "-"; in GetFormatTime()
125 ss << std::to_string(tmPtr->tm_mday) << " "; in GetFormatTime()
126 ss << std::to_string(tmPtr->tm_hour) << ":"; in GetFormatTime()
127 ss << std::to_string(tmPtr->tm_min) << ":"; in GetFormatTime()
128 ss << std::to_string(tmPtr->tm_sec); in GetFormatTime()