Home
last modified time | relevance | path

Searched refs:now_tm (Results 1 - 1 of 1) sorted by relevance

/foundation/multimedia/media_library/frameworks/services/media_dfx/src/
H A Ddfx_utils.cpp120 std::tm* now_tm = std::localtime(&now_time); in GetCurrentDateMillisecond() local
121 if (now_tm == nullptr) { in GetCurrentDateMillisecond()
122 MEDIA_ERR_LOG("GetCurrentDateMillisecond failed: now_tm is nullptr"); in GetCurrentDateMillisecond()
129 ss << (now_tm->tm_year + BASEYEAR) << '-' in GetCurrentDateMillisecond()
130 << std::setw(LENGTH_TWO) << std::setfill('0') << (now_tm->tm_mon + ONE_MORE) << '-' in GetCurrentDateMillisecond()
131 << std::setw(LENGTH_TWO) << std::setfill('0') << now_tm->tm_mday << ' ' in GetCurrentDateMillisecond()
132 << std::setw(LENGTH_TWO) << std::setfill('0') << now_tm->tm_hour << ':' in GetCurrentDateMillisecond()
133 << std::setw(LENGTH_TWO) << std::setfill('0') << now_tm->tm_min << ':' in GetCurrentDateMillisecond()
134 << std::setw(LENGTH_TWO) << std::setfill('0') << now_tm->tm_sec << '.' in GetCurrentDateMillisecond()

Completed in 2 milliseconds