Home
last modified time | relevance | path

Searched refs:is_time_legal (Results 1 – 5 of 5) sorted by relevance

/openbmc/libpldm/tests/
H A Dutils.cpp86 EXPECT_EQ(true, is_time_legal(30, 25, 16, 18, 8, 2019)); in TEST()
87 EXPECT_EQ(true, is_time_legal(30, 25, 16, 29, 2, 2020)); // leap year in TEST()
89 EXPECT_EQ(false, is_time_legal(30, 25, 16, 18, 8, 1960)); // year illegal in TEST()
90 EXPECT_EQ(false, is_time_legal(30, 25, 16, 18, 15, 2019)); // month illegal in TEST()
91 EXPECT_EQ(false, is_time_legal(30, 25, 16, 18, 0, 2019)); // month illegal in TEST()
92 EXPECT_EQ(false, is_time_legal(30, 25, 16, 0, 8, 2019)); // day illegal in TEST()
93 EXPECT_EQ(false, is_time_legal(30, 25, 16, 29, 2, 2019)); // day illegal in TEST()
94 EXPECT_EQ(false, is_time_legal(30, 25, 25, 18, 8, 2019)); // hours illegal in TEST()
95 EXPECT_EQ(false, is_time_legal(30, 70, 16, 18, 8, 2019)); // minutes illegal in TEST()
96 EXPECT_EQ(false, is_time_legal(80, 25, 16, 18, 8, 2019)); // seconds illegal in TEST()
/openbmc/libpldm/include/libpldm/
H A Dutils.h99 bool is_time_legal(uint8_t seconds, uint8_t minutes, uint8_t hours, uint8_t day,
/openbmc/libpldm/src/
H A Dutils.c236 bool is_time_legal(uint8_t seconds, uint8_t minutes, uint8_t hours, uint8_t day, in is_time_legal() function
/openbmc/libpldm/src/dsp/
H A Dbios.c107 if (!is_time_legal(seconds, minutes, hours, day, month, year)) { in encode_set_date_time_req()
157 if (!is_time_legal(*seconds, *minutes, *hours, *day, *month, *year)) { in decode_set_date_time_req()
/openbmc/libpldm/abi/x86_64/
H A Dgcc.dump82 'ShortName' => 'is_time_legal'
9602 'is_time_legal' => 1,