Home
last modified time | relevance | path

Searched refs:timeInfo (Results 1 – 6 of 6) sorted by relevance

/base/update/updateservice/services/firmware/common/src/
Dfirmware_update_adapter.cpp50 struct tm timeInfo; in GetRequestId() local
53 localtime_r(&now, &timeInfo); in GetRequestId()
54 …int res = sprintf_s(timeStamp, sizeof(timeStamp), "%d%02d%02d%02d%02d%02d", timeInfo.tm_year + TIM… in GetRequestId()
55 timeInfo.tm_mon + 1, timeInfo.tm_mday, timeInfo.tm_hour, timeInfo.tm_min, timeInfo.tm_sec); in GetRequestId()
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/
Dfaultlogger_client_test.cpp32 struct tm* timeInfo = localtime(&time); in GetFaultLogName() local
33 if (timeInfo == nullptr) { in GetFaultLogName()
38 strftime(buf, bufLen - 1, "%Y%m%d%H%M%S", timeInfo); in GetFaultLogName()
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dreminder_data_manager_test.cpp453 auto timeInfo = std::make_shared<ReminderTimerInfo>(); in HWTEST_F() local
454 timeInfo->SetType(0); in HWTEST_F()
455 timeInfo->SetRepeat(false); in HWTEST_F()
456 timeInfo->SetInterval(0); in HWTEST_F()
457 timeInfo->SetWantAgent(nullptr); in HWTEST_F()
458 timeInfo->action_ = ReminderRequest::REMINDER_EVENT_ALARM_ALERT; in HWTEST_F()
459 timeInfo->OnTrigger(); in HWTEST_F()
460 timeInfo->action_ = ReminderRequest::REMINDER_EVENT_ALERT_TIMEOUT; in HWTEST_F()
461 timeInfo->OnTrigger(); in HWTEST_F()
/base/hiviewdfx/hiview/plugins/faultlogger/common/
Dfaultlog_util.cpp43 struct tm* timeInfo = localtime_r(&out, &tmStruct); in GetFormatedTime() local
44 if (timeInfo == nullptr) { in GetFormatedTime()
49 strftime(buf, DEFAULT_BUFFER_SIZE - 1, "%Y%m%d%H%M%S", timeInfo); in GetFormatedTime()
/base/notification/distributed_notification_service/frameworks/ans/src/
Dreminder_request.cpp1350 struct tm timeInfo; in GetTimeInfoInner() local
1351 (void)localtime_r(&timeInSecond, &timeInfo); in GetTimeInfoInner()
1353 if (!is24HourClock && timeInfo.tm_hour > TIME_HOUR_OFFSET && !keep24Hour) { in GetTimeInfoInner()
1354 timeInfo.tm_hour -= TIME_HOUR_OFFSET; in GetTimeInfoInner()
1358 (void)strftime(dateTimeBuffer, dateTimeLen, "%Y-%m-%d %H:%M:%S", &timeInfo); in GetTimeInfoInner()
1362 (void)strftime(dateTimeBuffer, dateTimeLen, "%H:%M", &timeInfo); in GetTimeInfoInner()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_dump.cpp816 struct tm timeInfo = {}; in GenerateName() local
819 if (localtime_r(&currentTime, &timeInfo) == nullptr) { in GenerateName()
823 strftime(timeStr, bufferSize, "%Y%m%d%H%M%S", &timeInfo); in GenerateName()