Home
last modified time | relevance | path

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

/bionic/tests/
Dtime_test.cpp63 tm* broken_down = gmtime(&t); in TEST()
74 struct tm tm = {}; in TEST() local
76 struct tm* broken_down = gmtime_r(&t, &tm); in TEST()
77 ASSERT_EQ(broken_down, &tm); in TEST()
115 struct tm t; in TEST()
116 memset(&t, 0, sizeof(tm)); in TEST()
125 memset(&t, 0, sizeof(tm)); in TEST()
136 struct tm t; in TEST()
137 memset(&t, 0, sizeof(tm)); in TEST()
165 struct tm t; in TEST()
[all …]
Dwchar_test.cpp575 struct tm t; in TEST()
576 memset(&t, 0, sizeof(tm)); in TEST()
/bionic/libc/tzcode/
Dstrptime.c110 static unsigned char *_strptime(const unsigned char *, const char *, struct tm *,
117 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() argument
122 return (char*)(_strptime((const unsigned char*)buf, fmt, tm, &cr)); in strptime()
126 _strptime(const unsigned char *buf, const char *fmt, struct tm *tm, struct century_relyear *cr) in _strptime() argument
179 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, cr))) in _strptime()
185 if (!(bp = _strptime(bp, "%m/%d/%y", tm, cr))) in _strptime()
191 if (!(bp = _strptime(bp, "%Y-%m-%d", tm, cr))) in _strptime()
197 if (!(bp = _strptime(bp, "%H:%M", tm, cr))) in _strptime()
203 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, cr))) in _strptime()
209 if (!(bp = _strptime(bp, "%H:%M:%S", 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 …]
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
1401 static struct tm *
1403 struct tm *const tmp) in localsub()
1407 register struct tm * result; in localsub()
1482 struct tm *
1483 localtime_rz(struct state *sp, time_t const *timep, struct tm *tmp) in localtime_rz()
[all …]
Dasctime.c72 asctime_r(register const struct tm *timeptr, char *buf) in asctime_r()
125 asctime(register const struct tm *timeptr) in asctime()
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/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* __tm);
66 char* asctime_r(const struct tm* __tm, char* __buf);
69 time_t mktime(struct tm* __tm);
71 struct tm* localtime(const time_t* __t);
72 struct tm* localtime_r(const time_t* __t, struct tm* __tm);
74 struct tm* gmtime(const time_t* __t);
75 struct tm* gmtime_r(const time_t* __t, struct tm* __tm);
77 char* strptime(const char* __s, const char* __fmt, struct tm* __tm) __strftimelike(2);
78 char* strptime_l(const char* __s, const char* __fmt, struct tm* __tm, locale_t __l) __strftimelike(…
[all …]
Dwchar.h83 size_t wcsftime(wchar_t* __buf, size_t __n, const wchar_t* __fmt, const struct tm* __tm);
84 size_t wcsftime_l(wchar_t* __buf, size_t __n, const wchar_t* __fmt, const struct tm* __tm, locale_t…
/bionic/tests/headers/posix/
Dtime_h.c47 TYPE(struct tm); in time_h()
48 STRUCT_MEMBER(struct tm, int, tm_sec); in time_h()
49 STRUCT_MEMBER(struct tm, int, tm_min); in time_h()
50 STRUCT_MEMBER(struct tm, int, tm_hour); in time_h()
51 STRUCT_MEMBER(struct tm, int, tm_mday); in time_h()
52 STRUCT_MEMBER(struct tm, int, tm_mon); in time_h()
53 STRUCT_MEMBER(struct tm, int, tm_year); in time_h()
54 STRUCT_MEMBER(struct tm, int, tm_wday); in time_h()
55 STRUCT_MEMBER(struct tm, int, tm_yday); in time_h()
56 STRUCT_MEMBER(struct tm, int, tm_isdst); in time_h()
[all …]
Dwchar_h.c88 FUNCTION(wcsftime, size_t (*f)(wchar_t*, size_t, const wchar_t*, const struct tm*)); in wchar_h()
/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 …]
Dwchar_l.cpp44 size_t wcsftime_l(wchar_t* buf, size_t n, const wchar_t* fmt, const struct tm* tm, locale_t) { in wcsftime_l() argument
45 return wcsftime(buf, n, fmt, tm); in wcsftime_l()
/bionic/benchmarks/
Dtime_benchmark.cpp185 struct tm tm; in BM_time_localtime_r() local
186 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.c1183 struct tm *mytime; in p_secstodate()
1185 struct tm res; in p_secstodate()
/bionic/libc/
DAndroid.bp252 // The name of the tm_gmtoff field in our struct tm.