36 #include <boost/test/unit_test.hpp> 38 BOOST_AUTO_TEST_SUITE(ts_TimeStamp)
45 BOOST_CHECK_EQUAL(t1, t2);
50 BOOST_CHECK_EQUAL(t1, t2);
55 BOOST_CHECK_EQUAL(t1, t2);
60 BOOST_CHECK_EQUAL(t1, t2);
63 for (
uint64_t secs = 1; secs < 2000000000; secs += 72836471)
68 BOOST_CHECK_EQUAL(t1, t2);
73 BOOST_CHECK_EQUAL(t1, t2);
81 std::string s =
"19700101T000000,000000000";
84 BOOST_CHECK_EQUAL(t1, t2);
87 std::string s =
"20040916T235959,25";
90 BOOST_CHECK_EQUAL(t1, t2);
93 std::string s =
"20130709T125530,123456789";
96 BOOST_CHECK_EQUAL(t1, t2);
100 std::string s =
"20380119T031407,999999999";
103 BOOST_CHECK_EQUAL(t1, t2);
107 BOOST_AUTO_TEST_SUITE_END()
Represents absolute times.
std::ostream & operator<<(std::ostream &os, StampedBase const &stamped)
BOOST_AUTO_TEST_CASE(CheckISO8601RoundTrip)
unsigned __int64 uint64_t
String formatIso8601BasicUTC() const
static TimeStamp fromIso8601BasicUTC(const String &str)