Commit f54877d1 authored by Max Kellermann's avatar Max Kellermann

time/Convert: mention exceptions

parent af3ea97a
...@@ -39,12 +39,16 @@ ...@@ -39,12 +39,16 @@
/** /**
* Convert a UTC-based time point to a UTC-based "struct tm". * Convert a UTC-based time point to a UTC-based "struct tm".
*
* Throws on error.
*/ */
struct tm struct tm
GmTime(std::chrono::system_clock::time_point tp); GmTime(std::chrono::system_clock::time_point tp);
/** /**
* Convert a UTC-based time point to a local "struct tm". * Convert a UTC-based time point to a local "struct tm".
*
* Throws on error.
*/ */
struct tm struct tm
LocalTime(std::chrono::system_clock::time_point tp); LocalTime(std::chrono::system_clock::time_point tp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment