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

/bionic/libc/unistd/
H A Dtime.c51 struct timespec tm; local
52 clock_gettime( CLOCK_MONOTONIC, &tm);
53 return tm.tv_sec * CLOCKS_PER_SEC + (tm.tv_nsec * (CLOCKS_PER_SEC/1e9));
/bionic/libc/include/
H A Dtime.h45 struct tm { struct
62 * struct tm, the value should be the field name
66 extern char* asctime(const struct tm* a);
67 extern char* asctime_r(const struct tm* a, char* buf);
71 extern time_t mktime (struct tm *a);
73 extern struct tm* localtime(const time_t *t);
74 extern struct tm* localtime_r(const time_t *timep, struct tm *result);
76 extern struct tm* gmtime(const time_t *timep);
77 extern struct tm* gmtime_
[all...]
/bionic/libc/tzcode/
H A Dstrptime.c97 static unsigned char *_strptime(const unsigned char *, const char *, struct tm *,
102 strptime(const char *buf, const char *fmt, struct tm *tm) argument
107 return (char*)(_strptime((const unsigned char*)buf, fmt, tm, &cr));
111 _strptime(const unsigned char *buf, const char *fmt, struct tm *tm, struct century_relyear *cr) argument
163 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, cr)))
169 if (!(bp = _strptime(bp, "%m/%d/%y", tm, cr)))
175 if (!(bp = _strptime(bp, "%H:%M", tm, cr)))
181 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, c
[all...]
H A Dstrftime.c116 static char * _fmt P((const char *, const struct tm *, char *, const char *,
139 const struct tm * const t;
149 const struct tm * const t;
199 const struct tm * const t;
403 struct tm tm; local
408 tm = *t;
409 mkt = mktime64(&tm);
/bionic/libc/bionic/
H A Dtime64.c73 #define TM tm
251 static int check_tm(struct TM *tm) argument
254 assert(tm->tm_sec >= 0);
255 assert(tm->tm_sec <= 61);
257 assert(tm->tm_min >= 0);
258 assert(tm->tm_min <= 59);
260 assert(tm->tm_hour >= 0);
261 assert(tm->tm_hour <= 23);
263 assert(tm->tm_mday >= 1);
264 assert(tm
[all...]

Completed in 720 milliseconds