Home
last modified time | relevance | path

Searched refs:tmTime (Results 1 – 3 of 3) sorted by relevance

/developtools/profiler/device/base/src/
Dcommon.cpp468 struct tm tmTime; in GetTimeStr() local
469 localtime_r(&now, &tmTime); in GetTimeStr()
473 …printf_s(buffer, sizeof(buffer), "%04d%02d%02d_%02d%02d%02d", tmTime.tm_year + 1900, tmTime.tm_mon… in GetTimeStr()
474 tmTime.tm_mday, tmTime.tm_hour, tmTime.tm_min, tmTime.tm_sec); in GetTimeStr()
/developtools/profiler/device/plugins/hilog_plugin/src/
Dhilog_plugin.cpp401 struct tm tmTime = {0}; in TimeStringToNS() local
417 tmTime.tm_year = result.tm_year; in TimeStringToNS()
418 strptime(data, "%m-%d %H:%M:%S", &tmTime); in TimeStringToNS()
421 if (static_cast<int>(fixHour) != tmTime.tm_hour) { // hours since midnight - [0, 23] in TimeStringToNS()
422 HILOG_INFO(LOG_CORE, "HilogPlugin: hour(%d) <==> fix hour(%ld)!", tmTime.tm_hour, fixHour); in TimeStringToNS()
423 tmTime.tm_hour = fixHour; in TimeStringToNS()
430 timetTime = mktime(&tmTime); in TimeStringToNS()
/developtools/profiler/device/plugins/hilog_plugin/test/unittest/
Dhilog_plugin_unittest.cpp148 struct tm tmTime = {0}; in GetSec() local
149 tmTime.tm_year = pTM->tm_year; in GetSec()
150 strptime(data, "%m-%d %H:%M:%S", &tmTime); in GetSec()
154 if (static_cast<int>(fixHour) != tmTime.tm_hour) { // hours since midnight - [0, 23] in GetSec()
155 HILOG_INFO(LOG_CORE, "GetSec: hour(%d) <==> fix hour(%ld)!", tmTime.tm_hour, fixHour); in GetSec()
156 tmTime.tm_hour = fixHour; in GetSec()
159 return mktime(&tmTime); in GetSec()