clboss/Util/date.hpp
2021-04-26 16:17:10 +08:00

22 lines
408 B
C++

#ifndef UTIL_DATE_HPP
#define UTIL_DATE_HPP
#include<string>
namespace Util {
/** Util::date
*
* @brief Returns a simple date representation
* of the given Unix Epoch time.
*
* @desc This function may only be called from the main thread
* of the program.
* If used with `Ev`, do not call this function from a function
* you pass to `Ev::ThreadPool`.
*/
std::string date(double epoch);
}
#endif