common.hpp: time: Added typedef for Milliseconds and MillisecondsSince1970, and use instead of double where appropriate.
diff --git a/include/ndn-cpp/security/certificate/certificate.hpp b/include/ndn-cpp/security/certificate/certificate.hpp
index 21745e2..bc6b355 100644
--- a/include/ndn-cpp/security/certificate/certificate.hpp
+++ b/include/ndn-cpp/security/certificate/certificate.hpp
@@ -61,21 +61,21 @@
addExtension(const CertificateExtension& extension) { extensionList_.push_back(extension); }
void
- setNotBefore(const Time& notBefore) { notBefore_ = notBefore; }
+ setNotBefore(const MillisecondsSince1970& notBefore) { notBefore_ = notBefore; }
- Time&
+ MillisecondsSince1970&
getNotBefore() { return notBefore_; }
- const Time&
+ const MillisecondsSince1970&
getNotBefore() const { return notBefore_; }
void
- setNotAfter(const Time& notAfter) { notAfter_ = notAfter; }
+ setNotAfter(const MillisecondsSince1970& notAfter) { notAfter_ = notAfter; }
- Time&
+ MillisecondsSince1970&
getNotAfter() { return notAfter_; }
- const Time&
+ const MillisecondsSince1970&
getNotAfter() const { return notAfter_; }
void
@@ -113,8 +113,8 @@
protected:
SubjectDescriptionList subjectDescriptionList_;
- Time notBefore_;
- Time notAfter_;
+ MillisecondsSince1970 notBefore_;
+ MillisecondsSince1970 notAfter_;
PublicKey key_;
ExtensionList extensionList_;
};