Searched defs:tm (Results 1 - 7 of 7) sorted by relevance
/system/extras/tests/bionic/libc/common/ |
H A D | test_strftime_2039.c | 12 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 D | icache_main.c | 11 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 D | alarm.c | 15 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 D | date.c | 10 struct tm tm; local 25 tm.tm_year = day / 10000 - 1900; 26 tm.tm_mon = (day % 10000) / 100 - 1; 27 tm.tm_mday = (day % 100); 28 tm.tm_hour = hour / 10000; 29 tm.tm_min = (hour % 10000) / 100; 30 tm.tm_sec = (hour % 100); 31 tm.tm_isdst = -1; 33 t = mktime(&tm); 45 struct tm tm; local [all...] |
H A D | newfs_msdos.c | 261 struct tm *tm; local 618 tm = localtime(&now); 670 x = (((u_int)(1 + tm->tm_mon) << 8 | 671 (u_int)tm->tm_mday) + 672 ((u_int)tm->tm_sec << 8 | 674 ((u_int)(1900 + tm->tm_year) + 675 ((u_int)tm->tm_hour << 8 | 676 (u_int)tm->tm_min)); 711 x = (u_int)tm [all...] |
/system/core/libcutils/ |
H A D | tzstrftime.c | 45 static char * _fmt P((const char *, const struct tm *, char *, const char *, 99 const struct tm * const t; 148 const struct tm * const t; 352 struct tm tm; local 357 tm = *t; 358 mkt = mktime(&tm);
|
H A D | tztime.c | 92 ** 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...] |
Completed in 401 milliseconds