Home
last modified time | relevance | path

Searched refs:tmLocal (Results 1 – 4 of 4) sorted by relevance

/base/hiviewdfx/hilog/frameworks/native/
Dformat.cpp73 struct tm tmLocal; in HilogShowTimeBuffer() local
74 if (localtime_r(&now, &tmLocal) == nullptr) { in HilogShowTimeBuffer()
77 timeLen = strftime(buffer, bufLen, "%m-%d %H:%M:%S", &tmLocal); in HilogShowTimeBuffer()
80 timeLen = strftime(buffer, bufLen, "%Y-%m-%d %H:%M:%S", &tmLocal); in HilogShowTimeBuffer()
84 timeLen = strftime(buffer, bufLen, "%z %m-%d %H:%M:%S", &tmLocal); in HilogShowTimeBuffer()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dhisysevent.cpp54 struct tm tmLocal; in GetTimeZone() local
55 if (localtime_r(&sysSec, &tmLocal) == nullptr) { in GetTimeZone()
64 time_t diffSec = mktime(&tmLocal) - mktime(&tmUtc); in GetTimeZone()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
Dhiappevent_read.cpp156 struct tm tmLocal; in TranslateLongToFormattedTimeStamp() local
157 if (localtime_r(&ftt, &tmLocal) == nullptr) { in TranslateLongToFormattedTimeStamp()
162 if (strftime(formatTz, sizeof(formatTz), DATE_FORMAT, &tmLocal) == 0) { in TranslateLongToFormattedTimeStamp()
Dhiappevent_base.cpp61 struct tm tmLocal; in GetTimeInfo() local
62 if (localtime_r(&sysSec, &tmLocal) == nullptr) { in GetTimeInfo()
71 time_t diffSec = mktime(&tmLocal) - mktime(&tmUtc); in GetTimeInfo()