Home
last modified time | relevance | path

Searched refs:timeinfo (Results 1 – 5 of 5) sorted by relevance

/base/powermgr/battery_manager/services/native/src/
Dbattery_dump.cpp47 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() local
48 if (timeinfo == nullptr) { in DumpCurrentTime()
53 …(fd, "Current time: %04d-%02d-%02d %02d:%02d:%02d.%03d\n", timeinfo->tm_year + 1900, timeinfo->tm_… in DumpCurrentTime()
54 timeinfo->tm_mday, timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, in DumpCurrentTime()
/base/sensors/miscdevice/services/miscdevice_service/src/
Dmiscdevice_dump.cpp165 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() local
166 CHKPV(timeinfo); in DumpCurrentTime()
167 startTime.append(std::to_string(timeinfo->tm_year + BASE_YEAR)).append("-") in DumpCurrentTime()
168 ….append(std::to_string(timeinfo->tm_mon + BASE_MON)).append("-").append(std::to_string(timeinfo->t… in DumpCurrentTime()
169 ….append(" ").append(std::to_string(timeinfo->tm_hour)).append(":").append(std::to_string(timeinfo-… in DumpCurrentTime()
170 .append(":").append(std::to_string(timeinfo->tm_sec)).append(".") in DumpCurrentTime()
/base/sensors/medical_sensor/services/medical_sensor/src/
Dmedical_dump.cpp147 struct tm *timeinfo = localtime(&(time.tv_sec)); in DumpSensorData() local
148 if (timeinfo == nullptr) { in DumpSensorData()
153timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, int32_t { (time.tv_nsec / MS_NS) }, in DumpSensorData()
164 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() local
165 if (timeinfo == nullptr) { in DumpCurrentTime()
169 …dprintf(fd, "Current time: %02d:%02d:%02d.%03d\n", timeinfo->tm_hour, timeinfo->tm_min, timeinfo->… in DumpCurrentTime()
/base/sensors/sensor/services/sensor/src/
Dsensor_dump.cpp245 struct tm *timeinfo = localtime(&(time.tv_sec)); in DumpSensorData() local
246 CHKPF(timeinfo); in DumpSensorData()
248timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, int32_t { (time.tv_nsec / MS_NS) }, in DumpSensorData()
259 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() local
260 CHKPV(timeinfo); in DumpCurrentTime()
261 …dprintf(fd, "Current time: %02d:%02d:%02d.%03d\n", timeinfo->tm_hour, timeinfo->tm_min, timeinfo->… in DumpCurrentTime()
/base/msdp/device_status/utils/common/src/
Dutil.cpp86 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in GetTimeStamp() local
87 CHKPV(timeinfo); in GetTimeStamp()
88 startTime.append(std::to_string(timeinfo->tm_year + BASE_YEAR)).append("-") in GetTimeStamp()
89 ….append(std::to_string(timeinfo->tm_mon + BASE_MON)).append("-").append(std::to_string(timeinfo->t… in GetTimeStamp()
90 ….append(" ").append(std::to_string(timeinfo->tm_hour)).append(":").append(std::to_string(timeinfo-… in GetTimeStamp()
91 .append(":").append(std::to_string(timeinfo->tm_sec)).append(".") in GetTimeStamp()