33 #include "gtest/gtest.h"
48 class Time :
public testing::Test {
64 memset((
void*)&tm, 0,
sizeof(tm));
66 time_t end_time = mktime(&tm);
68 while (timestamp < end_time){
69 datetime1 = gmtime(×tamp);
71 EXPECT_EQ(datetime1->tm_year, datetime2.year);
72 EXPECT_EQ(datetime1->tm_mon, datetime2.mon);
73 EXPECT_EQ(datetime1->tm_mday, datetime2.mday);
74 EXPECT_EQ(datetime1->tm_hour, datetime2.hour);
75 EXPECT_EQ(datetime1->tm_min, datetime2.min);
76 EXPECT_EQ(datetime1->tm_sec, datetime2.sec);
77 EXPECT_EQ(datetime1->tm_wday, datetime2.wday);
78 timestamp += 86400 + 3600 + 42;
TEST_F(RneFromLLATest, Equator)
void date_from_timestamp(uint32_t timestamp, DateTimeT *date_time)
Time conversion functions.