aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurface-time.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/subsurface-time.h')
-rw-r--r--core/subsurface-time.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/subsurface-time.h b/core/subsurface-time.h
index ce2821d07..8d564753f 100644
--- a/core/subsurface-time.h
+++ b/core/subsurface-time.h
@@ -14,6 +14,10 @@ extern void utc_mkdate(timestamp_t, struct tm *tm);
extern int utc_year(timestamp_t timestamp);
extern int utc_weekday(timestamp_t timestamp);
+/* parse and format date times of the form YYYY-MM-DD hh:mm:ss */
+extern timestamp_t parse_datetime(const char *s); /* returns 0 on error */
+extern char *format_datetime(timestamp_t timestamp); /* ownership of string passed to caller */
+
#ifdef __cplusplus
}
#endif