time/Convert: mention exceptions

This commit is contained in:
Max Kellermann 2019-05-08 16:14:12 +02:00
parent af3ea97a42
commit f54877d128

View File

@ -39,12 +39,16 @@
/**
* Convert a UTC-based time point to a UTC-based "struct tm".
*
* Throws on error.
*/
struct tm
GmTime(std::chrono::system_clock::time_point tp);
/**
* Convert a UTC-based time point to a local "struct tm".
*
* Throws on error.
*/
struct tm
LocalTime(std::chrono::system_clock::time_point tp);