Searched refs:timeinfo (Results 1 – 5 of 5) sorted by relevance
/base/powermgr/battery_manager/services/native/src/ |
D | battery_dump.cpp | 47 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/ |
D | miscdevice_dump.cpp | 165 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/ |
D | medical_dump.cpp | 147 struct tm *timeinfo = localtime(&(time.tv_sec)); in DumpSensorData() local 148 if (timeinfo == nullptr) { in DumpSensorData() 153 … timeinfo->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/ |
D | sensor_dump.cpp | 245 struct tm *timeinfo = localtime(&(time.tv_sec)); in DumpSensorData() local 246 CHKPF(timeinfo); in DumpSensorData() 248 … timeinfo->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/ |
D | util.cpp | 86 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()
|