aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/time.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-01 15:36:30 +0000
committerlloyd <[email protected]>2009-12-01 15:36:30 +0000
commit29e9b23500d101f01988a33e8f1a6aaab39d5f7d (patch)
tree28fdc5244d6b618b09a4b0d80fd1708a56401e77 /src/utils/time.h
parent9ffe4441271ff41fd33fc3965c191e62bce36453 (diff)
Most files including <botan/time.h> actually just needed <chrono>
Clean up implementation of calendar_value() a bit
Diffstat (limited to 'src/utils/time.h')
-rw-r--r--src/utils/time.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/time.h b/src/utils/time.h
index 28b777efe..bd1c8fb06 100644
--- a/src/utils/time.h
+++ b/src/utils/time.h
@@ -29,6 +29,10 @@ struct BOTAN_DLL calendar_point
year(y), month(mon), day(d), hour(h), minutes(min), seconds(sec) {}
};
+/*
+* @param time_point a time point from the system clock
+* @returns calendar_point object representing this time point
+*/
BOTAN_DLL calendar_point calendar_value(
const std::chrono::system_clock::time_point& time_point);