/Zephyr-latest/tests/unit/timeutil/ |
D | test_s32.c | 19 .tm_hour = 23, 31 .tm_hour = 0, 43 .tm_hour = 15, 60 .tm_hour = 20, 72 .tm_hour = 3, 86 .tm_hour = 23, 98 .tm_hour = 0, 110 .tm_hour = 0, 122 .tm_hour = 0, 134 .tm_hour = 0, [all …]
|
D | test_s64.c | 20 .tm_hour = 20, 32 .tm_hour = 20, 44 .tm_hour = 3, 56 .tm_hour = 23, 68 .tm_hour = 0, 81 .tm_hour = 23, 93 .tm_hour = 0, 105 .tm_hour = 0, 117 .tm_hour = 0, 129 .tm_hour = 0, [all …]
|
D | main.c | 32 zassert_equal(tm.tm_hour, tp->tm.tm_hour, in timeutil_check() 34 tp->civil, tm.tm_hour, tp->tm.tm_hour); in timeutil_check()
|
/Zephyr-latest/drivers/rtc/ |
D | rtc_utils.c | 25 if ((mask & RTC_ALARM_TIME_MASK_HOUR) && (timeptr->tm_hour < 0 || timeptr->tm_hour > 23)) { in rtc_utils_validate_rtc_time()
|
D | rtc_ds1307.c | 57 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, tm->tm_hour, tm->tm_min, in ds1307_set_time() 62 regs[2] = bin2bcd(tm->tm_hour); in ds1307_set_time() 92 timeptr->tm_hour = bcd2bin(regs[2] & HOURS_BITS); /* 24hr mode */ in ds1307_get_time() 113 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in ds1307_get_time()
|
D | rtc_mc146818.c | 154 if (timeptr->tm_hour < MIN_HOUR || timeptr->tm_hour > MAX_HOUR) { in rtc_mc146818_validate_time() 201 rtc_write(RTC_HOUR, (uint8_t)timeptr->tm_hour); in rtc_mc146818_set_time() 246 timeptr->tm_hour = rtc_read(RTC_HOUR); in rtc_mc146818_get_time() 281 (timeptr->tm_hour < MIN_HOUR || timeptr->tm_hour > MAX_HOUR)) { in rtc_mc146818_validate_alarm() 340 rtc_write(RTC_ALARM_HOUR, timeptr->tm_hour); in rtc_mc146818_alarm_set_time() 387 timeptr->tm_hour = value; in rtc_mc146818_alarm_get_time()
|
D | rtc_ambiq.c | 57 atm->ui32Hour = tm->tm_hour; in rtc_time_to_ambiq_time_set() 91 tm->tm_hour = atm->ui32Hour; in ambiq_time_to_rtc_time_set() 127 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in ambiq_rtc_set_time() 166 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in ambiq_rtc_get_time() 217 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec, *mask); in ambiq_rtc_alarm_get_time() 268 timeptr->tm_sec, timeptr->tm_min, timeptr->tm_hour, timeptr->tm_mday, in ambiq_rtc_alarm_set_time()
|
D | rtc_emul.c | 104 datetime->tm_hour++; in rtc_emul_increment_tm() 107 if (datetime->tm_hour < 24) { in rtc_emul_increment_tm() 111 datetime->tm_hour = 0; in rtc_emul_increment_tm() 168 (alarm->datetime.tm_hour != data->datetime.tm_hour)) { in rtc_emul_test_alarms()
|
D | rtc_am1805.c | 135 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, tm->tm_hour, tm->tm_min, in am1805_set_time() 140 regs[2] = bin2bcd(tm->tm_hour) & HOURS_BITS; in am1805_set_time() 190 timeptr->tm_hour = bcd2bin(regs[2] & HOURS_BITS); in am1805_get_time() 199 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in am1805_get_time() 343 timeptr->tm_hour = bcd2bin(regs[2] & HOURS_BITS); in am1805_alarm_get_time() 352 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec, *mask); in am1805_alarm_get_time() 410 regs[2] = bin2bcd(timeptr->tm_hour) & HOURS_BITS; in am1805_alarm_set_time() 417 timeptr->tm_sec, timeptr->tm_min, timeptr->tm_hour, timeptr->tm_mday, in am1805_alarm_set_time()
|
D | rtc_nxp_irtc.c | 83 RTC_HOURMIN_HOUR_CNT(timeptr->tm_hour); in nxp_irtc_set_time() 111 timeptr->tm_hour = RTC_NXP_GET_REG_FIELD(irtc_reg, HOURMIN, HOUR_CNT); in nxp_irtc_get_time() 172 irtc_reg->ALM_HOURMIN |= RTC_ALM_HOURMIN_ALM_HOUR(timeptr->tm_hour); in nxp_irtc_alarm_set_time() 237 timeptr->tm_hour = RTC_NXP_GET_REG_FIELD(irtc_reg, HOURMIN, HOUR_CNT); in nxp_irtc_alarm_get_time()
|
/Zephyr-latest/samples/drivers/rtc/src/ |
D | main.c | 21 .tm_hour = 4, in set_date_time() 46 tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); in get_date_time()
|
/Zephyr-latest/tests/drivers/rtc/rtc_api/src/ |
D | test_alarm.c | 25 .tm_hour = 13, 39 .tm_hour = 13, 52 .tm_hour = 25, 142 zassert_equal(alarm_time_get.tm_hour, test_alarm_time_set.tm_hour, in ZTEST()
|
D | test_time.c | 46 zassert_true((datetime_get.tm_hour > -1) && (datetime_get.tm_hour < 24), in ZTEST()
|
D | test_y2k.c | 68 zassert_equal(rtm[Y2K].tm_hour, 0, "wrong hour: %d", rtm[Y2K].tm_hour); in ZTEST()
|
D | test_alarm_callback.c | 29 .tm_hour = 13, 43 .tm_hour = 13,
|
/Zephyr-latest/tests/drivers/rtc/rtc_api_helpers/src/ |
D | test_rtc_time_to_tm.c | 19 zassert_equal(offsetof(struct rtc_time, tm_hour), offsetof(struct tm, tm_hour), in ZTEST()
|
/Zephyr-latest/subsys/shell/modules/ |
D | date_service.c | 33 t->tm_hour, in date_print() 94 t->tm_hour = strtol(time_str, &endptr, 10); in get_h_m_s() 98 if ((t->tm_hour < 0) || (t->tm_hour > 23)) { in get_h_m_s()
|
/Zephyr-latest/subsys/bluetooth/services/ |
D | cts.c | 45 date_time.tm_hour = ct_time->hours; /* hours of day */ in bt_cts_time_to_unix_ms() 51 date_time.tm_mday, date_time.tm_hour, date_time.tm_min, date_time.tm_sec); in bt_cts_time_to_unix_ms() 85 date_time.tm_mday, date_time.tm_hour, date_time.tm_min, date_time.tm_sec); in bt_cts_time_from_unix_ms() 94 ct_time->hours = date_time.tm_hour; /* hours */ in bt_cts_time_from_unix_ms()
|
/Zephyr-latest/lib/libc/common/source/time/ |
D | gmtime_r.c | 92 result->tm_hour = rem / 60U / 60U; in gmtime_r() 93 rem -= result->tm_hour * 60 * 60; in gmtime_r()
|
D | asctime.c | 34 mon_str[tp->tm_mon], tp->tm_mday, tp->tm_hour, tp->tm_min, tp->tm_sec, in asctime_impl()
|
/Zephyr-latest/tests/drivers/rtc/shell/src/ |
D | main.c | 64 get_time_mock.rtc.tm_hour = 12; in configure_get_time_mock() 82 zassert_equal(hour, rtctime->tm_hour, "Hour mismatch"); in assert_set_time() 137 assert_set_time(2022, 5, 17, get_time_mock.rtc.tm_hour, get_time_mock.rtc.tm_min, in ZTEST()
|
/Zephyr-latest/tests/drivers/rtc/rtc_utils/src/ |
D | test_rtc_utils.c | 17 .tm_hour = 25, in ZTEST()
|
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/ |
D | main.c | 25 (DWORD)cal->tm_mday << 16 | (DWORD)cal->tm_hour << 11 | (DWORD)cal->tm_min << 5 | in get_fattime()
|
/Zephyr-latest/lib/libc/minimal/include/ |
D | time.h | 27 int tm_hour; member
|
/Zephyr-latest/samples/boards/nuvoton/numaker/system_off/src/ |
D | main.c | 41 alarm_time_set.tm_hour = RTC_TEST_ALARM_TIME_HOUR; in set_alarm_10s()
|