/system/extras/tests/bionic/libc/common/ |
H A D | test_strptime.c | 26 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 D | test_tm_zone.c | 41 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 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 | date.c | 12 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 D | touch.c | 18 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 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 | newfs_msdos.c | 261 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 D | ProcessCallStack.cpp | 99 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 D | backtrace.c | 50 struct tm tm; local 51 localtime_r(&t, &tm); 53 strftime(timestr, sizeof(timestr), "%F %T", &tm);
|
H A D | tombstone.c | 576 struct tm tmBuf; 577 struct tm* ptm;
|
/system/core/include/utils/ |
H A D | ProcessCallStack.h | 74 struct tm mTimeUpdated;
|
/system/extras/tests/bionic/libstdc++/ |
H A D | test_ctime.cpp | 91 volatile std::tm better_time;
|
/system/core/liblog/ |
H A D | fake_log_device.c | 350 struct tm tmBuf; 352 struct tm* ptm;
|
H A D | logprint.c | 708 struct tm tmBuf; 710 struct tm* ptm;
|
/system/core/charger/ |
H A D | charger.c | 191 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 D | bootchart.c | 132 struct tm now = *localtime(&now_t);
|
/system/core/adb/ |
H A D | adb.c | 961 struct tm now;
|