summaryrefslogtreecommitdiffstats
path: root/include/timeutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/timeutils.h')
-rw-r--r--include/timeutils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/timeutils.h b/include/timeutils.h
index 2ec193a09..265577f5e 100644
--- a/include/timeutils.h
+++ b/include/timeutils.h
@@ -70,4 +70,11 @@ int strtimeval_iso(struct timeval *tv, int flags, char *buf, size_t bufsz);
int strtm_iso(struct tm *tm, int flags, char *buf, size_t bufsz);
int strtime_iso(const time_t *t, int flags, char *buf, size_t bufsz);
+#define UL_SHORTTIME_THISYEAR_HHMM (1 << 1)
+
+int time_is_today(const time_t *t, struct timeval *now);
+int time_is_thisyear(const time_t *t, struct timeval *now);
+
+int strtime_short(const time_t *t, struct timeval *now, int flags, char *buf, size_t bufsz);
+
#endif /* UTIL_LINUX_TIME_UTIL_H */