Home
last modified time | relevance | path

Searched refs:tm_hour (Results 1 – 10 of 10) sorted by relevance

/bionic/tests/
Dtime_test.cpp71 ASSERT_EQ(0, broken_down->tm_hour); in TEST()
84 ASSERT_EQ(0, broken_down->tm_hour); in TEST()
278 t.tm_hour = 23; in TEST()
480 struct tm tm = {.tm_hour = 12}; in TEST()
482 EXPECT_EQ(0, tm.tm_hour); in TEST()
484 tm = {.tm_hour = 12}; in TEST()
486 EXPECT_EQ(0, tm.tm_hour); in TEST()
488 tm = {.tm_hour = 12}; in TEST()
490 EXPECT_EQ(0, tm.tm_hour); in TEST()
492 tm = {.tm_hour = 12}; in TEST()
[all …]
/bionic/libc/tzcode/
Dstrptime.c290 if (!(_conv_num(&bp, &tm->tm_hour, 0, 23))) in _strptime()
299 if (!(_conv_num(&bp, &tm->tm_hour, 1, 12))) in _strptime()
331 if (tm->tm_hour > 12) /* i.e., 13:00 AM ?! */ in _strptime()
333 else if (tm->tm_hour == 12) in _strptime()
334 tm->tm_hour = 0; in _strptime()
342 if (tm->tm_hour > 12) /* i.e., 13:00 PM ?! */ in _strptime()
344 else if (tm->tm_hour < 12) in _strptime()
345 tm->tm_hour += 12; in _strptime()
Dstrftime.c309 pt = _conv(t->tm_hour, getformat(modifier, "02", " 2", " ", "02"), pt, ptlim); in _fmt()
312 pt = _conv((t->tm_hour % 12) ? (t->tm_hour % 12) : 12, in _fmt()
329 pt = _conv(t->tm_hour, getformat(modifier, " 2", " 2", " ", "02"), pt, ptlim); in _fmt()
349 pt = _conv((t->tm_hour % 12) ? (t->tm_hour % 12) : 12, in _fmt()
363 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ? in _fmt()
385 tm.tm_hour = t->tm_hour; in _fmt()
Dasctime.c101 timeptr->tm_mday, timeptr->tm_hour, in asctime_r()
Dlocaltime.c1877 tmp->tm_hour = rem / SECSPERHOUR; in timesub()
2004 (result = (atmp->tm_hour - btmp->tm_hour)) == 0 && in tmcomp()
2017 dest->tm_hour = src->tm_hour; in mktmcpy()
2055 if (normalize_overflow(&yourtm.tm_hour, &yourtm.tm_min, MINSPERHOUR)) in time2sub()
2057 if (normalize_overflow(&yourtm.tm_mday, &yourtm.tm_hour, HOURSPERDAY)) in time2sub()
/bionic/libc/bionic/
Dtime64.c236 seconds += date->tm_hour * 60 * 60; in timegm64()
254 assert(tm->tm_hour >= 0); in check_tm()
255 assert(tm->tm_hour <= 23); in check_tm()
370 dest->tm_hour = src->tm_hour; in copy_tm_to_TM()
402 dest->tm_hour = src->tm_hour; in copy_TM_to_tm()
638 p->tm_hour = v_tm_hour; in gmtime64_r()
776 date->tm_mday, date->tm_hour, in asctime64_r()
/bionic/libc/kernel/uapi/linux/
Drtc.h15 int tm_hour; member
/bionic/tests/headers/posix/
Dtime_h.c50 STRUCT_MEMBER(struct tm, int, tm_hour); in time_h()
/bionic/libc/include/
Dtime.h80 int tm_hour; member
/bionic/libc/dns/resolv/
Dres_debug.c1195 mytime->tm_hour, mytime->tm_min, mytime->tm_sec); in p_secstodate()