coyote/timeutils.h

13 lines
273 B
C
Raw Normal View History

2023-11-23 06:05:17 +00:00
#pragma once
#include <ctime>
#include <string>
time_t current_time();
std::string short_time(time_t time);
std::string full_time(time_t time);
std::string to_rfc3339(time_t time);
std::string to_web_date(time_t time);
2023-11-23 06:05:17 +00:00
std::string relative_time(time_t from, time_t to);