Searched refs:tm (Results 1 - 19 of 19) 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 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/include/cutils/
H A Dtztime.h26 time_t mktime_tz(struct tm * const tmp, char const * tz);
27 void localtime_tz(const time_t * const timep, struct tm * tmp, const char* tz);
52 size_t strftime_tz(char *s, size_t max, const char *format, const struct tm *tm, const struct strftime_locale *locale);
/system/core/libcutils/
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...]
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 Dprivate.h340 char *asctime_r P((struct tm const *, char *));
/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.c546 struct tm tmBuf;
547 struct tm* ptm;
/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.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);
/system/core/init/
H A Dbootchart.c132 struct tm now = *localtime(&now_t);
/system/core/adb/
H A Dadb.c874 struct tm now;

Completed in 96 milliseconds