From dfdda3b344e525f4fdb5e2c07ac63b52e501941f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 1 Mar 2011 14:22:41 +0100 Subject: Add new functions to convert iso time strings. --- common/gettime.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/gettime.h') diff --git a/common/gettime.h b/common/gettime.h index 731be569b..4199369e4 100644 --- a/common/gettime.h +++ b/common/gettime.h @@ -34,6 +34,9 @@ void gnupg_set_time (time_t newtime, int freeze); int gnupg_faked_time_p (void); u32 make_timestamp (void); u32 scan_isodatestr (const char *string); +int isotime_p (const char *string); +int isotime_human_p (const char *string); +size_t string2isotime (gnupg_isotime_t atime, const char *string); time_t isotime2epoch (const char *string); void epoch2isotime (gnupg_isotime_t timebuf, time_t atime); u32 add_days_to_timestamp (u32 stamp, u16 days); -- cgit v1.2.3