Home
last modified time | relevance | path

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

/system/logging/liblog/
Dlog_time.cpp36 struct tm* ptm; in strptime() local
39 ptm = localtime_r(&now, &tmBuf); in strptime()
41 ptm = localtime(&now); in strptime()
52 ret = ::strptime(ret, f, ptm); in strptime()
65 ret = ::strptime(ret, f, ptm); in strptime()
77 ptm = localtime_r(&now, &tmBuf); in strptime()
79 ptm = localtime(&now); in strptime()
94 ret = ::strptime(ret, f, ptm); in strptime()
116 tv_sec = mktime(ptm); in strptime()
Dlogprint.cpp1437 struct tm* ptm; in android_log_formatLogLine() local
1477 ptm = NULL; in android_log_formatLogLine()
1482 ptm = localtime_r(&now, &tmBuf); in android_log_formatLogLine()
1484 ptm = localtime(&now); in android_log_formatLogLine()
1486 strftime(timeBuf, sizeof(timeBuf), &"%Y-%m-%d %H:%M:%S"[p_format->year_output ? 0 : 3], ptm); in android_log_formatLogLine()
1496 if (p_format->zone_output && ptm) { in android_log_formatLogLine()
1497 strftime(timeBuf + len, sizeof(timeBuf) - len, " %z", ptm); in android_log_formatLogLine()
/system/bt/btif/src/
Dbtif_debug_conn.cc42 struct tm* ptm = localtime(&secs); in format_ts() local
45 strftime(tempbuff, sizeof(tempbuff), "%m-%d %H:%M:%S", ptm); in format_ts()
/system/libziparchive/
Dzip_writer.cc159 struct tm* ptm; in ExtractTimeAndDate() local
162 ptm = localtime_r(&when, &tm_result); in ExtractTimeAndDate()
164 ptm = localtime(&when); in ExtractTimeAndDate()
167 int year = ptm->tm_year; in ExtractTimeAndDate()
172 *out_date = static_cast<uint16_t>((year - 80) << 9 | (ptm->tm_mon + 1) << 5 | ptm->tm_mday); in ExtractTimeAndDate()
173 *out_time = static_cast<uint16_t>(ptm->tm_hour << 11 | ptm->tm_min << 5 | ptm->tm_sec >> 1); in ExtractTimeAndDate()
/system/logging/logcat/tests/
Dlogcat_test.cpp189 struct tm* ptm; in TEST() local
192 ptm = localtime_r(&now, &tmBuf); in TEST()
194 ptm = localtime(&&now); in TEST()
196 strftime(needle, sizeof(needle), "[ %Y-", ptm); in TEST()