diff options
author | Peter Powell <petpow@saberuk.com> | 2014-06-13 00:09:34 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-25 14:41:01 +0200 |
commit | 1cf85908164d97dfa385c75b9f817905a8a75e78 (patch) | |
tree | dd6598cebcf92d2d78304046960cf3d85ee78e72 /include | |
parent | da9adf9e29a1e7e0f914b494972013d0c0c35672 (diff) |
Add parameter to InspIRCd::TimeString for UTC time formats.
Missing doc added by @attilamolnar
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 1b1543e28..584a330ba 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -664,9 +664,10 @@ class CoreExport InspIRCd /** Return a time_t as a human-readable string. * @param format The format to retrieve the date/time in. See `man 3 strftime` * for more information. If NULL, "%a %b %d %T %Y" is assumed. + * @param utc True to convert the time to string as-is, false to convert it to local time first. * @return A string representing the given date/time. */ - static std::string TimeString(time_t curtime, const char* format = NULL); + static std::string TimeString(time_t curtime, const char* format = NULL, bool utc = false); /** Begin execution of the server. * NOTE: this function NEVER returns. Internally, |