/bionic/tests/ |
D | time_test.cpp | 63 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 …]
|
D | wchar_test.cpp | 575 struct tm t; in TEST() 576 memset(&t, 0, sizeof(tm)); in TEST()
|
/bionic/libc/tzcode/ |
D | strptime.c | 110 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 …]
|
D | private.h | 384 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 …]
|
D | localtime.c | 152 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 …]
|
D | asctime.c | 72 asctime_r(register const struct tm *timeptr, char *buf) in asctime_r() 125 asctime(register const struct tm *timeptr) in asctime()
|
D | strftime.c | 119 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/ |
D | time64.h | 50 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*);
|
D | time.h | 46 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 …]
|
D | wchar.h | 83 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/ |
D | time_h.c | 47 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 …]
|
D | wchar_h.c | 88 FUNCTION(wcsftime, size_t (*f)(wchar_t*, size_t, const wchar_t*, const struct tm*)); in wchar_h()
|
/bionic/libc/bionic/ |
D | time64.c | 77 #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 …]
|
D | wchar_l.cpp | 44 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/ |
D | time_benchmark.cpp | 185 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/ |
D | wcsftime.c | 107 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/ |
D | res_debug.c | 1183 struct tm *mytime; in p_secstodate() 1185 struct tm res; in p_secstodate()
|
/bionic/libc/ |
D | Android.bp | 252 // The name of the tm_gmtoff field in our struct tm.
|