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

/bionic/libc/bionic/
H A Dstrftime_l.cpp31 size_t strftime_l(char *s, size_t max, const char *format, const struct tm *tm, argument
33 return strftime(s, max, format, tm);
H A Dtime64.c77 #define TM tm
245 static int check_tm(struct TM *tm) argument
248 assert(tm->tm_sec >= 0);
249 assert(tm->tm_sec <= 61);
251 assert(tm->tm_min >= 0);
252 assert(tm->tm_min <= 59);
254 assert(tm->tm_hour >= 0);
255 assert(tm->tm_hour <= 23);
257 assert(tm->tm_mday >= 1);
258 assert(tm
[all...]
/bionic/libc/include/
H A Dtime.h46 struct tm { struct
65 extern char* asctime(const struct tm*) __LIBC_ABI_PUBLIC__;
66 extern char* asctime_r(const struct tm*, char*) __LIBC_ABI_PUBLIC__;
69 extern time_t mktime(struct tm*) __LIBC_ABI_PUBLIC__;
71 extern struct tm* localtime(const time_t*) __LIBC_ABI_PUBLIC__;
72 extern struct tm* localtime_r(const time_t*, struct tm*) __LIBC_ABI_PUBLIC__;
74 extern struct tm* gmtime(const time_t*) __LIBC_ABI_PUBLIC__;
75 extern struct tm* gmtime_r(const time_t*, struct tm*) __LIBC_ABI_PUBLIC_
[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(const char *, const struct tm *, char *, const char *,
136 const struct tm *const t)
186 _fmt(const char *format, const struct tm *const t, char * pt,
380 struct tm tm; local
385 tm = *t;
386 mkt = mktime64(&tm);
H A Dlocaltime.c65 ** 5. They might reference tm.TM_ZONE after calling offtime.
161 static struct tm * gmtsub(const time_t * timep, int_fast32_t offset,
162 struct tm * tmp, struct state * sp); // android-changed: added sp.
163 static struct tm * localsub(const time_t * timep, int_fast32_t offset,
164 struct tm * tmp, struct state * sp); // android-changed: added sp.
174 static time_t time1(struct tm * tmp,
175 struct tm * (*funcp)(const time_t *,
176 int_fast32_t, struct tm *, struct state *), // android-changed: added state*.
178 static time_t time2(struct tm * tmp,
179 struct tm * (*func
1713 time2sub(struct tm * const tmp, struct tm *(*const funcp)(const time_t*, int_fast32_t, struct tm*, struct state*), const int_fast32_t offset, int * const okayp, const int do_norm_secs, struct state * sp) argument
[all...]
/bionic/libc/upstream-openbsd/lib/libc/time/
H A Dwcsftime.c107 static wchar_t * _fmt(const wchar_t *, const struct tm *, wchar_t *, const wchar_t *,
120 const wchar_t *__restrict format, const struct tm *__restrict t)
138 _fmt(const wchar_t *format, const struct tm *t, wchar_t *pt,
288 struct tm tm; local
293 tm = *t;
294 mkt = mktime(&tm);

Completed in 655 milliseconds