diff options
author | Daniel Neus <[email protected]> | 2016-07-28 15:07:49 +0200 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-07-28 15:10:00 +0200 |
commit | 97500d3c7585cad3808ad9f7fa749268ff6fb33a (patch) | |
tree | 21e1ce824bc4cdd20aa5ff57d677c615e6707886 /src/lib/asn1/asn1_time.cpp | |
parent | 17677f9981005b68201653b45de42c5958f32b70 (diff) |
add X509_Time::to_std_timepoint()
Diffstat (limited to 'src/lib/asn1/asn1_time.cpp')
-rw-r--r-- | src/lib/asn1/asn1_time.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/asn1/asn1_time.cpp b/src/lib/asn1/asn1_time.cpp index 67fc8b5ac..b091c4160 100644 --- a/src/lib/asn1/asn1_time.cpp +++ b/src/lib/asn1/asn1_time.cpp @@ -250,6 +250,11 @@ bool X509_Time::passes_sanity_check() const return true; } +std::chrono::system_clock::time_point X509_Time::to_std_timepoint() const + { + return calendar_point(m_year, m_month, m_day, m_hour, m_minute, m_second).to_std_timepoint(); + } + /* * Compare two X509_Times for in various ways */ |