Lines Matching +full:- +full:d
2 * Copyright 2019-2020 Peter Bigot Consulting
4 * SPDX-License-Identifier: Apache-2.0
17 struct tm tm = *gmtime(&tp->ux); in timeutil_check()
20 zassert_equal(&tm, gmtime_r(&tp->ux, &tm), in timeutil_check()
23 zassert_equal(tm.tm_year, tp->tm.tm_year, in timeutil_check()
24 "datetime %s year %d != %d", in timeutil_check()
25 tp->civil, tm.tm_year, tp->tm.tm_year); in timeutil_check()
26 zassert_equal(tm.tm_mon, tp->tm.tm_mon, in timeutil_check()
27 "datetime %s mon %d != %d", in timeutil_check()
28 tp->civil, tm.tm_mon, tp->tm.tm_mon); in timeutil_check()
29 zassert_equal(tm.tm_mday, tp->tm.tm_mday, in timeutil_check()
30 "datetime %s mday %d != %d", in timeutil_check()
31 tp->civil, tm.tm_mday, tp->tm.tm_mday); in timeutil_check()
32 zassert_equal(tm.tm_hour, tp->tm.tm_hour, in timeutil_check()
33 "datetime %s hour %d != %d", in timeutil_check()
34 tp->civil, tm.tm_hour, tp->tm.tm_hour); in timeutil_check()
35 zassert_equal(tm.tm_min, tp->tm.tm_min, in timeutil_check()
36 "datetime %s min %d != %d", in timeutil_check()
37 tp->civil, tm.tm_min, tp->tm.tm_min); in timeutil_check()
38 zassert_equal(tm.tm_sec, tp->tm.tm_sec, in timeutil_check()
39 "datetime %s sec %d != %d", in timeutil_check()
40 tp->civil, tm.tm_sec, tp->tm.tm_sec); in timeutil_check()
41 zassert_equal(tm.tm_wday, tp->tm.tm_wday, in timeutil_check()
42 "datetime %s wday %d != %d", in timeutil_check()
43 tp->civil, tm.tm_wday, tp->tm.tm_wday); in timeutil_check()
44 zassert_equal(tm.tm_yday, tp->tm.tm_yday, in timeutil_check()
45 "datetime %s yday %d != %d", in timeutil_check()
46 tp->civil, tm.tm_yday, tp->tm.tm_yday); in timeutil_check()
47 zassert_equal(tp->ux, uxtime, in timeutil_check()
49 tp->civil, uxtime); in timeutil_check()