From 3139cbc56a08ac76bccfe223dd2669f3f080c927 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 7 Nov 2022 13:04:11 -0500 Subject: xtime: Move parse_gettime() to xgettime() --- src/xtime.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/xtime.h') 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 -- cgit v1.2.3