Searched defs:tm (Results 1 - 10 of 10) sorted by relevance

/system/extras/tests/bionic/libc/common/
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) {
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...]
/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 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 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 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/debuggerd/
H A Dbacktrace.c50 struct tm tm; local
51 localtime_r(&t, &tm);
53 strftime(timestr, sizeof(timestr), "%F %T", &tm);
/system/core/libcutils/
H A Dtzstrftime.c46 static char * _fmt P((const char *, const struct tm *, char *, const char *,
100 const struct tm * const t;
149 const struct tm * const t;
353 struct tm tm; local
358 tm = *t;
359 mkt = mktime(&tm);
H A Dtztime.c92 ** 5. They might reference tm.TM_ZONE after calling offtime.
183 static struct tm * gmtsub P((const time_t * timep, long offset,
184 struct tm * tmp));
185 static struct tm * localsub P((const time_t * timep, long offset,
186 struct tm * tmp, const struct state *sp));
195 static time_t time1 P((struct tm * tmp,
196 struct tm * (*funcp) P((const time_t *,
197 long, struct tm *, const struct state* sp)),
199 static time_t time2 P((struct tm *tmp,
200 struct tm * (*func
258 static struct tm tm; variable in typeref:struct:tm
[all...]
/system/core/charger/
H A Dcharger.c187 struct timespec tm; local
188 clock_gettime(CLOCK_MONOTONIC, &tm);
189 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC);

Completed in 1468 milliseconds