mirror of https://github.com/tstack/lnav
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
286 B
C++
18 lines
286 B
C++
4 years ago
|
|
||
|
#ifndef lnav_humanize_time_hh
|
||
|
#define lnav_humanize_time_hh
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
namespace humanize {
|
||
|
namespace time {
|
||
|
|
||
|
std::string time_ago(time_t last_time, bool convert_local = false);
|
||
|
|
||
|
std::string precise_time_ago(const struct timeval &tv, bool convert_local = false);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|