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

/system/extras/tests/bionic/libc/common/
H A Dtest_strptime.c26 struct tm tm; local
31 memset(&tm, 0, sizeof(tm));
32 strptime("11:14", "%R", &tm);
33 strftime(buf, sizeof(buf), "%H:%M", &tm);
37 memset(&tm, 0, sizeof(tm));
38 strptime("09:41:53", "%T", &tm);
39 strftime(buf, sizeof(buf), "%H:%M:%S", &tm);
[all...]
H A Dtest_tm_zone.c41 struct tm tm0;
42 struct tm* tm;
49 tm = localtime_r( &now, &tm0 );
50 printf( "localtime_r() returns timezone abbreviation '%s'\n", tm->TM_ZONE ? tm->TM_ZONE : "<NULL POINTER>" );
H A Dtest_strftime_2039.c12 struct tm tm = *localtime(&now); local
14 tm.tm_year = 2039 - 1900;
17 if (strftime(buff, sizeof buff, "%s", &tm) == 0) {
30 if (strftime(buff, sizeof buff, "%c", &tm) == 0) {
/system/extras/tests/icachetest/
H A Dicache_main.c11 struct timeval now, tm; local
21 gettimeofday(&tm, 0);
22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec);
28 gettimeofday(&tm, 0);
29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec);
/system/core/toolbox/
H A Ddate.c12 struct tm tm; local
27 tm.tm_year = day / 10000 - 1900;
28 tm.tm_mon = (day % 10000) / 100 - 1;
29 tm.tm_mday = (day % 100);
30 tm.tm_hour = hour / 10000;
31 tm.tm_min = (hour % 10000) / 100;
32 tm.tm_sec = (hour % 100);
33 tm.tm_isdst = -1;
35 t = mktime(&tm);
47 struct tm tm; local
[all...]
H A Dtouch.c18 struct tm tm; local
31 tm.tm_year = day / 10000 - 1900;
32 tm.tm_mon = (day % 10000) / 100 - 1;
33 tm.tm_mday = day % 100;
34 tm.tm_hour = hour / 10000;
35 tm.tm_min = (hour % 10000) / 100;
36 tm.tm_sec = hour % 100;
37 tm.tm_isdst = -1;
39 return mktime(&tm);
[all...]
H A Dalarm.c15 struct tm tm; local
75 res = ioctl(fd, RTC_ALM_READ, &tm);
82 t = timegm(&tm);
84 gmtime_r(&t, &tm);
86 localtime_r(&t, &tm);
89 asctime_r(&tm, strbuf);
95 res = ioctl(fd, RTC_RD_TIME, &tm);
100 asctime_r(&tm, strbuf);
108 //strptime(argv[optind], NULL, &tm);
[all...]
H A Dnewfs_msdos.c261 struct tm *tm; local
619 tm = localtime(&now);
671 x = (((u_int)(1 + tm->tm_mon) << 8 |
672 (u_int)tm->tm_mday) +
673 ((u_int)tm->tm_sec << 8 |
675 ((u_int)(1900 + tm->tm_year) +
676 ((u_int)tm->tm_hour << 8 |
677 (u_int)tm->tm_min));
712 x = (u_int)tm
[all...]
/system/core/libutils/
H A DProcessCallStack.cpp99 static String8 getTimeString(struct tm tm) { argument
102 strftime(timestr, sizeof(timestr), "%F %T", &tm);
123 mTimeUpdated = tm();
146 struct tm tm; local
147 localtime_r(&t, &tm);
149 mTimeUpdated = tm;
/system/core/debuggerd/
H A Dbacktrace.c50 struct tm tm; local
51 localtime_r(&t, &tm);
53 strftime(timestr, sizeof(timestr), "%F %T", &tm);
H A Dtombstone.c576 struct tm tmBuf;
577 struct tm* ptm;
/system/core/include/utils/
H A DProcessCallStack.h74 struct tm mTimeUpdated;
/system/extras/tests/bionic/libstdc++/
H A Dtest_ctime.cpp91 volatile std::tm better_time;
/system/core/liblog/
H A Dfake_log_device.c350 struct tm tmBuf;
352 struct tm* ptm;
H A Dlogprint.c708 struct tm tmBuf;
710 struct tm* ptm;
/system/core/charger/
H A Dcharger.c191 struct timespec tm; local
192 clock_gettime(CLOCK_MONOTONIC, &tm);
193 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC);
/system/core/init/
H A Dbootchart.c132 struct tm now = *localtime(&now_t);
/system/core/adb/
H A Dadb.c961 struct tm now;

Completed in 1410 milliseconds