Comment out boost time functions for now.
diff --git a/tests/test-encode-decode-ContentObject.cpp b/tests/test-encode-decode-ContentObject.cpp
index 665d097..0ed1c99 100644
--- a/tests/test-encode-decode-ContentObject.cpp
+++ b/tests/test-encode-decode-ContentObject.cpp
@@ -6,15 +6,19 @@
#include <cstdlib>
#include <sstream>
#include <iostream>
+#if 0
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/date_time/posix_time/time_serialize.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
+#endif
#include <ndn-cpp/ContentObject.hpp>
using namespace std;
using namespace ndn;
+#if 0
using namespace boost::posix_time;
using namespace boost::gregorian;
+#endif
unsigned char ContentObject1[] = {
0x04, 0x82, // ContentObject
@@ -62,7 +66,9 @@
1
};
+#if 0
const ptime UNIX_EPOCH_TIME = ptime (date (1970, Jan, 1));
+#endif
int main(int argc, char** argv)
{
@@ -70,9 +76,11 @@
ContentObject contentObject;
contentObject.decode(ContentObject1, sizeof(ContentObject1));
cout << "ContentObject name " << contentObject.getName().to_uri() << endl;
+#if 0
ptime timestamp = UNIX_EPOCH_TIME + milliseconds(contentObject.getSignedInfo().getTimestampMilliseconds());
cout << "ContentObject timestamp " << timestamp.date().year() << "/" << timestamp.date().month() << "/" << timestamp.date().day()
<< " " << timestamp.time_of_day().hours() << ":" << timestamp.time_of_day().minutes() << ":" << timestamp.time_of_day().seconds() << endl;
+#endif
ptr_lib::shared_ptr<vector<unsigned char> > encoding = contentObject.encode();
cout << "ContentObject encoding length " << encoding->size() << " vs. sizeof(ContentObject1) " << sizeof(ContentObject1) << endl;
@@ -80,8 +88,10 @@
ContentObject reDecodedContentObject;
reDecodedContentObject.decode(*encoding);
cout << "Re-decoded ContentObject name " << reDecodedContentObject.getName().to_uri() << endl;
+#if 0
timestamp = UNIX_EPOCH_TIME + milliseconds(reDecodedContentObject.getSignedInfo().getTimestampMilliseconds());
cout << "Re-decoded ContentObject timestamp " << timestamp.date().year() << "/" << timestamp.date().month() << "/" << timestamp.date().day() << endl;
+#endif
} catch (exception &e) {
cout << "exception: " << e.what() << endl;
}