Lines Matching refs:rtm
31 static struct rtc_time rtm[2] = { in ZTEST() local
36 (struct tm *const)&rtm[0], in ZTEST()
37 (struct tm *const)&rtm[1], in ZTEST()
47 int ret = rtc_set_time(rtc, &rtm[Y99]); in ZTEST()
58 zassert_ok(rtc_get_time(rtc, &rtm[Y2K])); in ZTEST()
61 zassert_equal(rtm[Y2K].tm_year + 1900, 2000, "wrong year: %d", rtm[Y2K].tm_year + 1900); in ZTEST()
62 zassert_equal(rtm[Y2K].tm_mon, 0, "wrong month: %d", rtm[Y2K].tm_mon); in ZTEST()
63 zassert_equal(rtm[Y2K].tm_mday, 1, "wrong day-of-month: %d", rtm[Y2K].tm_mday); in ZTEST()
64 zassert_true(rtm[Y2K].tm_yday == 0 || rtm[Y2K].tm_yday == -1, "wrong day-of-year: %d", in ZTEST()
65 rtm[Y2K].tm_yday); in ZTEST()
66 zassert_true(rtm[Y2K].tm_wday == 6 || rtm[Y2K].tm_wday == -1, "wrong day-of-week: %d", in ZTEST()
67 rtm[Y2K].tm_wday); in ZTEST()
68 zassert_equal(rtm[Y2K].tm_hour, 0, "wrong hour: %d", rtm[Y2K].tm_hour); in ZTEST()
69 zassert_equal(rtm[Y2K].tm_min, 0, "wrong minute: %d", rtm[Y2K].tm_min); in ZTEST()
70 zassert_equal(rtm[Y2K].tm_sec, SECONDS_AFTER, "wrong second: %d", rtm[Y2K].tm_sec); in ZTEST()