summaryrefslogtreecommitdiffstats
path: root/src/xtime.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-07 13:04:11 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-07 13:04:11 -0500
commit3139cbc56a08ac76bccfe223dd2669f3f080c927 (patch)
tree0276d073a6494a50382c5a86f2434691190705bf /src/xtime.h
parentddfe02342f89703e723699238a424396204aa1cf (diff)
downloadbfs-3139cbc56a08ac76bccfe223dd2669f3f080c927.tar.xz
xtime: Move parse_gettime() to xgettime()
Diffstat (limited to 'src/xtime.h')
-rw-r--r--src/xtime.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xtime.h b/src/xtime.h
index cca1428..b49cd04 100644
--- a/src/xtime.h
+++ b/src/xtime.h
@@ -83,4 +83,14 @@ int xtimegm(struct tm *tm, time_t *timep);
*/
int xgetdate(const char *str, struct timespec *result);
+/**
+ * Get the current time.
+ *
+ * @param[out] result
+ * A pointer to the result.
+ * @return
+ * 0 on success, -1 on failure.
+ */
+int xgettime(struct timespec *result);
+
#endif // BFS_XTIME_H