name: Two more append methods

- append component represented as a string
- append timestamp-based version (automatically takes current timestamp)

Change-Id: I2917538c9b686b7ab9011f4c8e47c222dd33aaed
diff --git a/src/name.cpp b/src/name.cpp
index 44e6039..0a0b0e3 100644
--- a/src/name.cpp
+++ b/src/name.cpp
@@ -11,6 +11,7 @@
 #include <string.h>
 #include <ndn-cpp/name.hpp>
 #include "c/util/ndn_memory.h"
+#include "c/util/time.h"
 
 #include "util/string-helper.hpp"
 
@@ -169,6 +170,13 @@
   return *this;
 }
 
+Name& 
+Name::appendVersion()
+{
+  appendVersion(ndn_getNowMilliseconds());
+  return *this;
+}
+
 Name
 Name::getSubName(size_t iStartComponent, size_t nComponents) const
 {