Home
last modified time | relevance | path

Searched refs:datetime_get (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/tests/drivers/rtc/rtc_api/src/
Dtest_time.c24 struct rtc_time datetime_get; in ZTEST() local
30 memset(&datetime_get, 0xFF, sizeof(datetime_get)); in ZTEST()
34 zassert_equal(rtc_get_time(rtc, &datetime_get), 0, in ZTEST()
37 zassert_true((datetime_get.tm_sec > -1) && (datetime_get.tm_sec < 60), in ZTEST()
40 zassert_true((datetime_get.tm_min > -1) && (datetime_get.tm_min < 60), in ZTEST()
43 zassert_true((datetime_get.tm_hour > -1) && (datetime_get.tm_hour < 24), in ZTEST()
46 zassert_true((datetime_get.tm_mday > 0) && (datetime_get.tm_mday < 32), in ZTEST()
49 zassert_true((datetime_get.tm_year > 124) && (datetime_get.tm_year < 127), in ZTEST()
52 zassert_true((datetime_get.tm_wday > -2) && (datetime_get.tm_wday < 7), in ZTEST()
55 zassert_true((datetime_get.tm_yday > -2) && (datetime_get.tm_yday < 366), in ZTEST()
[all …]
Dtest_time_incrementing.c24 struct rtc_time datetime_get; in ZTEST() local
36 zassert_equal(rtc_get_time(rtc, &datetime_get), 0, "Failed to get time"); in ZTEST()
38 timer_get = timeutil_timegm((struct tm *)(&datetime_get)); in ZTEST()