parser/utils: enforce 64-bit times on 32-bit platforms

don't assume a 64-bit platform.
This commit is contained in:
djcb
2017-11-04 11:30:23 +00:00
parent ec51f66da2
commit 6a0654c91b
2 changed files with 6 additions and 8 deletions

View File

@ -88,13 +88,14 @@ std::string format (const char *frm, ...)
std::string date_to_time_t_string (const std::string& date, bool first);
/**
* time_t expressed as a string with a 10-digit time_t
* 64-bit incarnation of time_t expressed as a 10-digit string. Uses 64-bit for the time-value,
* regardless of the size of time_t.
*
* @param t
* @param t some time value
*
* @return
*/
std::string date_to_time_t_string (time_t t);
std::string date_to_time_t_string (int64_t t);