Searched refs:CASS_DATE_EPOCH (Results 1 – 2 of 2) sorted by relevance
23 #define CASS_DATE_EPOCH 2147483648U macro33 EXPECT_EQ(cass_date_from_epoch(0), CASS_DATE_EPOCH); in TEST()34 EXPECT_EQ(cass_date_from_epoch(24 * 3600), CASS_DATE_EPOCH + 1); in TEST()35 EXPECT_EQ(cass_date_from_epoch(2 * 24 * 3600), CASS_DATE_EPOCH + 2); in TEST()47 EXPECT_EQ(cass_date_time_to_epoch(CASS_DATE_EPOCH, 0), 0L); // Epoch in TEST()48 EXPECT_EQ(cass_date_time_to_epoch(CASS_DATE_EPOCH - 1, 0), -24L * 3600L); // Epoch - 1 day in TEST()49 EXPECT_EQ(cass_date_time_to_epoch(CASS_DATE_EPOCH + 1, 0), 24L * 3600L); // Epoch + 1 day in TEST()
25 #define CASS_DATE_EPOCH 2147483648U // 2^31 macro121 return (epoch_secs / NUM_SECONDS_PER_DAY) + CASS_DATE_EPOCH; in cass_date_from_epoch()129 return (static_cast<cass_uint64_t>(date) - CASS_DATE_EPOCH) * NUM_SECONDS_PER_DAY + in cass_date_time_to_epoch()