Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 16 of 16) sorted by relevance

/bionic/libc/include/
Dtime64.h50 char* asctime64(const struct tm*);
51 char* asctime64_r(const struct tm*, char*);
54 struct tm* gmtime64(const time64_t*);
55 struct tm* gmtime64_r(const time64_t*, struct tm*);
56 struct tm* localtime64(const time64_t*);
57 struct tm* localtime64_r(const time64_t*, struct tm*);
58 time64_t mktime64(const struct tm*);
59 time64_t timegm64(const struct tm*);
60 time64_t timelocal64(const struct tm*);
Dtime.h46 struct tm { struct
65 char* asctime(const struct tm*);
66 char* asctime_r(const struct tm*, char*);
69 time_t mktime(struct tm*);
71 struct tm* localtime(const time_t*);
72 struct tm* localtime_r(const time_t*, struct tm*);
74 struct tm* gmtime(const time_t*);
75 struct tm* gmtime_r(const time_t*, struct tm*);
77 char* strptime(const char*, const char*, struct tm*);
78 size_t strftime(char*, size_t, const char*, const struct tm*);
[all …]
Dwchar.h99 size_t wcsftime(wchar_t *, size_t, const wchar_t *, const struct tm *);
/bionic/libc/tzcode/
Dstrptime.c97 static unsigned char *_strptime(const unsigned char *, const char *, struct tm *,
102 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() argument
107 return (char*)(_strptime((const unsigned char*)buf, fmt, tm, &cr)); in strptime()
111 _strptime(const unsigned char *buf, const char *fmt, struct tm *tm, struct century_relyear *cr) in _strptime() argument
163 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, cr))) in _strptime()
169 if (!(bp = _strptime(bp, "%m/%d/%y", tm, cr))) in _strptime()
175 if (!(bp = _strptime(bp, "%H:%M", tm, cr))) in _strptime()
181 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, cr))) in _strptime()
187 if (!(bp = _strptime(bp, "%H:%M:%S", tm, cr))) in _strptime()
193 if (!(bp = _strptime(bp, _ctloc(t_fmt), tm, cr))) in _strptime()
[all …]
Dprivate.h384 struct tm *gmtime(time_t const *);
385 struct tm *gmtime_r(time_t const *restrict, struct tm *restrict);
386 struct tm *localtime(time_t const *);
387 struct tm *localtime_r(time_t const *restrict, struct tm *restrict);
388 time_t mktime(struct tm *);
394 extern char *asctime_r(struct tm const *restrict, char *restrict);
422 struct tm *offtime(time_t const *, long);
425 time_t timegm(struct tm *);
428 time_t timelocal(struct tm *);
431 time_t timeoff(struct tm *, long);
[all …]
Dasctime.c72 asctime_r(register const struct tm *timeptr, char *buf) in asctime_r()
125 asctime(register const struct tm *timeptr) in asctime()
Dlocaltime.c152 static struct tm *gmtsub(struct state const *, time_t const *, int_fast32_t,
153 struct tm *);
157 static struct tm *timesub(time_t const *, int_fast32_t, struct state const *,
158 struct tm *);
189 static struct tm tm; variable
1446 static struct tm *
1448 struct tm *const tmp) in localsub()
1452 register struct tm * result; in localsub()
1527 struct tm *
1528 localtime_rz(struct state *sp, time_t const *timep, struct tm *tmp) in localtime_rz()
[all …]
Dstrftime.c119 static char * _fmt(const char *, const struct tm *, char *, const char *,
138 strftime_l(char *s, size_t maxsize, char const *format, struct tm const *t, in strftime_l()
149 strftime(char *s, size_t maxsize, const char *format, const struct tm *t) in strftime()
193 _fmt(const char *format, const struct tm *t, char *pt, in _fmt()
355 struct tm tm; in _fmt() local
360 tm = *t; in _fmt()
361 mkt = mktime64(&tm); in _fmt()
/bionic/tests/
Dtime_test.cpp36 tm* broken_down = gmtime(&t); in TEST()
75 struct tm t; in TEST()
76 memset(&t, 0, sizeof(tm)); in TEST()
85 memset(&t, 0, sizeof(tm)); in TEST()
96 struct tm t; in TEST()
97 memset(&t, 0, sizeof(tm)); in TEST()
125 struct tm t; in TEST()
126 memset(&t, 0, sizeof(tm)); in TEST()
149 struct tm t; in TEST()
150 memset(&t, 0, sizeof(tm)); in TEST()
[all …]
Dwchar_test.cpp453 struct tm t; in TEST()
454 memset(&t, 0, sizeof(tm)); in TEST()
Dgtest_main.cpp584 const tm* time_struct = localtime(&epoch_iteration_start_time); in OnTestIterationEndXmlPrint()
/bionic/libc/bionic/
Dtime64.c77 #define TM tm
245 static int check_tm(struct TM *tm) in check_tm() argument
248 assert(tm->tm_sec >= 0); in check_tm()
249 assert(tm->tm_sec <= 61); in check_tm()
251 assert(tm->tm_min >= 0); in check_tm()
252 assert(tm->tm_min <= 59); in check_tm()
254 assert(tm->tm_hour >= 0); in check_tm()
255 assert(tm->tm_hour <= 23); in check_tm()
257 assert(tm->tm_mday >= 1); in check_tm()
258 assert(tm->tm_mday <= days_in_month[IS_LEAP(tm->tm_year)][tm->tm_mon]); in check_tm()
[all …]
/bionic/benchmarks/
Dtime_benchmark.cpp74 struct tm tm; in BM_time_localtime_r() local
75 localtime_r(&t, &tm); in BM_time_localtime_r()
/bionic/libc/upstream-openbsd/lib/libc/time/
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) in wcsftime()
138 _fmt(const wchar_t *format, const struct tm *t, wchar_t *pt, in _fmt()
288 struct tm tm; in _fmt() local
293 tm = *t; in _fmt()
294 mkt = mktime(&tm); in _fmt()
/bionic/libc/dns/resolv/
Dres_debug.c1165 struct tm *mytime; in p_secstodate()
1167 struct tm res; in p_secstodate()
/bionic/libc/
DAndroid.bp143 // The name of the tm_gmtoff field in our struct tm.