summaryrefslogtreecommitdiff
path: root/utils/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/time.h')
-rw-r--r--utils/time.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/time.h b/utils/time.h
index a99cdc24a..24a39886d 100644
--- a/utils/time.h
+++ b/utils/time.h
@@ -72,4 +72,12 @@ nserror nsc_snptimet(const char *str, size_t size, time_t *timep);
*/
nserror nsc_strntimet(const char *str, size_t size, time_t *timep);
+/**
+ * Create an RFC 1123 compliant date string from a Unix timestamp
+ *
+ * \param t The timestamp to consider
+ * \return Pointer to buffer containing string - invalidated by next call.
+ */
+const char *rfc1123_date(time_t t);
+
#endif