Home
last modified time | relevance | path

Searched refs:tm_mon (Results 1 – 25 of 47) sorted by relevance

12

/Zephyr-latest/tests/unit/timeutil/
Dtest_s32.c21 .tm_mon = 11,
33 .tm_mon = 0,
45 .tm_mon = 5,
62 .tm_mon = 11,
74 .tm_mon = 0,
88 .tm_mon = 11,
100 .tm_mon = 0,
112 .tm_mon = 1,
124 .tm_mon = 1,
136 .tm_mon = 2,
[all …]
Dtest_s64.c22 .tm_mon = 11,
34 .tm_mon = 11,
46 .tm_mon = 0,
58 .tm_mon = 11,
70 .tm_mon = 0,
83 .tm_mon = 11,
95 .tm_mon = 0,
107 .tm_mon = 1,
119 .tm_mon = 2,
131 .tm_mon = 11,
[all …]
Dmain.c26 zassert_equal(tm.tm_mon, tp->tm.tm_mon, in timeutil_check()
28 tp->civil, tm.tm_mon, tp->tm.tm_mon); in timeutil_check()
/Zephyr-latest/drivers/rtc/
Drtc_utils.c29 if ((mask & RTC_ALARM_TIME_MASK_MONTH) && (timeptr->tm_mon < 0 || timeptr->tm_mon > 11)) { in rtc_utils_validate_rtc_time()
Drtc_ds1307.c57 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, tm->tm_hour, tm->tm_min, in ds1307_set_time()
65 regs[5] = bin2bcd(tm->tm_mon); in ds1307_set_time()
95 timeptr->tm_mon = bcd2bin(regs[5] & MONTHS_BITS); in ds1307_get_time()
112 timeptr->tm_year, timeptr->tm_mon, timeptr->tm_mday, timeptr->tm_wday, in ds1307_get_time()
Drtc_ambiq.c55 atm->ui32Month = tm->tm_mon + 1; in rtc_time_to_ambiq_time_set()
89 tm->tm_mon = atm->ui32Month - 1; in ambiq_time_to_rtc_time_set()
126 timeptr->tm_year, timeptr->tm_mon, timeptr->tm_mday, timeptr->tm_wday, in ambiq_rtc_set_time()
165 timeptr->tm_year, timeptr->tm_mon, timeptr->tm_mday, timeptr->tm_wday, in ambiq_rtc_get_time()
216 "mask = 0x%04x", timeptr->tm_wday, timeptr->tm_mon, timeptr->tm_mday, in ambiq_rtc_alarm_get_time()
269 timeptr->tm_mon, timeptr->tm_wday, mask); in ambiq_rtc_alarm_set_time()
Drtc_emul.c78 return dim[datetime->tm_mon]; in rtc_emul_get_days_in_month()
131 datetime->tm_mon++; in rtc_emul_increment_tm()
134 if (datetime->tm_mon < 12) { in rtc_emul_increment_tm()
139 datetime->tm_mon = 0; in rtc_emul_increment_tm()
178 (alarm->datetime.tm_mon != data->datetime.tm_mon)) { in rtc_emul_test_alarms()
Drtc_am1805.c135 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, tm->tm_hour, tm->tm_min, in am1805_set_time()
142 regs[4] = bin2bcd(tm->tm_mon) & MONTHS_BITS; in am1805_set_time()
192 timeptr->tm_mon = bcd2bin(regs[4] & MONTHS_BITS); in am1805_get_time()
198 timeptr->tm_year, timeptr->tm_mon, timeptr->tm_mday, timeptr->tm_wday, in am1805_get_time()
345 timeptr->tm_mon = bcd2bin(regs[4] & MONTHS_BITS); in am1805_alarm_get_time()
351 "mask = 0x%04x", timeptr->tm_wday, timeptr->tm_mon, timeptr->tm_mday, in am1805_alarm_get_time()
412 regs[4] = bin2bcd(timeptr->tm_mon) & MONTHS_BITS; in am1805_alarm_set_time()
418 timeptr->tm_mon, timeptr->tm_wday, mask); in am1805_alarm_set_time()
Drtc_nxp_irtc.c75 int calc_month = timeptr->tm_mon + 1; in nxp_irtc_set_time()
114 timeptr->tm_mon = RTC_NXP_GET_REG_FIELD(irtc_reg, YEARMON, MON_CNT) - 1; in nxp_irtc_get_time()
180 irtc_reg->ALM_YEARMON = RTC_ALM_YEARMON_ALM_MON(timeptr->tm_mon + 1); in nxp_irtc_alarm_set_time()
247 timeptr->tm_mon = RTC_NXP_GET_REG_FIELD(irtc_reg, YEARMON, MON_CNT) - 1; in nxp_irtc_alarm_get_time()
Drtc_rpi_pico.c116 .month = timeptr->tm_mon + 1, in rtc_rpi_pico_set_time()
147 timeptr->tm_mon = dt.month - 1; in rtc_rpi_pico_get_time()
215 (alarm->tm_mon << RTC_IRQ_SETUP_0_MONTH_LSB)); in rtc_rpi_pico_alarm_set_time()
Drtc_shell.c71 tm_time->tm_mon = atoi(month) - 1; in consume_date()
214 rtctime.tm_mon + 1, rtctime.tm_mday, rtctime.tm_hour, rtctime.tm_min, in cmd_get()
Drtc_numaker.c80 curr_time.month = timeptr->tm_mon + 1; in rtc_numaker_set_time()
114 timeptr->tm_mon = curr_time.month - 1; in rtc_numaker_get_time()
239 alarm_time.month = timeptr->tm_mon + 1; in rtc_numaker_alarm_set_time()
307 timeptr->tm_mon = alarm_time.month - 1; in rtc_numaker_alarm_get_time()
/Zephyr-latest/samples/drivers/rtc/src/
Dmain.c19 .tm_mon = 11 - 1, 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/lib/libc/common/source/time/
Dasctime.c28 ((unsigned int)tp->tm_mon >= DATE_MON_STRING_SZ)) { in asctime_impl()
34 mon_str[tp->tm_mon], tp->tm_mday, tp->tm_hour, tp->tm_min, tp->tm_sec, in asctime_impl()
Dgmtime_r.c52 tp->tm_mon = m - 1; in time_civil_from_days()
/Zephyr-latest/tests/drivers/rtc/rtc_api/src/
Dtest_alarm.c27 .tm_mon = 0,
41 .tm_mon = 0,
54 .tm_mon = 15,
152 zassert_equal(alarm_time_get.tm_mon, test_alarm_time_set.tm_mon, in ZTEST()
Dtest_y2k.c62 zassert_equal(rtm[Y2K].tm_mon, 0, "wrong month: %d", rtm[Y2K].tm_mon); in ZTEST()
Dtest_alarm_callback.c31 .tm_mon = 0,
45 .tm_mon = 0,
/Zephyr-latest/tests/drivers/rtc/rtc_api_helpers/src/
Dtest_rtc_time_to_tm.c25 zassert_equal(offsetof(struct rtc_time, tm_mon), offsetof(struct tm, tm_mon), in ZTEST()
/Zephyr-latest/subsys/bluetooth/services/
Dcts.c43 date_time.tm_mon = ct_time->mon - 1; /* month start from 1, but need from 0 */ in bt_cts_time_to_unix_ms()
50 LOG_DBG("CTS Write Time: %d/%d/%d %d:%d:%d", date_time.tm_year, date_time.tm_mon, in bt_cts_time_to_unix_ms()
84 LOG_DBG("CTS Read Time: %d/%d/%d %d:%d:%d", date_time.tm_year, date_time.tm_mon, in bt_cts_time_from_unix_ms()
92 ct_time->mon = date_time.tm_mon + 1; /* months starting from 1 */ in bt_cts_time_from_unix_ms()
/Zephyr-latest/tests/drivers/rtc/rtc_utils/src/
Dtest_rtc_utils.c19 .tm_mon = 15, in ZTEST()
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dmain.c24 return (DWORD)(cal->tm_year - 80) << 25 | (DWORD)(cal->tm_mon + 1) << 21 | in get_fattime()
/Zephyr-latest/lib/libc/minimal/include/
Dtime.h29 int tm_mon; member
/Zephyr-latest/subsys/shell/modules/
Ddate_service.c31 t->tm_mon + 1, in date_print()
76 t->tm_mon = month - 1; in get_y_m_d()
/Zephyr-latest/tests/drivers/rtc/shell/src/
Dmain.c62 get_time_mock.rtc.tm_mon = 12 - 1; /* rtc_time month offset */ in configure_get_time_mock()
80 zassert_equal(mon, rtctime->tm_mon + 1, "Month mismatch"); in assert_set_time()

12