From 81e83060856f02f6cfc7b48f8032e0cf14fc6c68 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Mon, 23 Mar 2015 13:22:48 +0100 Subject: Import _gpgme_parse_timestamp from gpgme as parse_timestamp. * common/gettime.h (parse_timestamp): New declaration. * common/gettime.c (_win32_timegm): New function imported from gpgme/src/conversion.c:_gpgme_timegm. (parse_timestamp): New function imported from gpgme/src/conversion.c:_gpgme_parse_timestamp. -- Signed-off-by: Neal H. Walfield --- common/gettime.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common/gettime.h') diff --git a/common/gettime.h b/common/gettime.h index 736eb4168..10cae17a2 100644 --- a/common/gettime.h +++ b/common/gettime.h @@ -41,6 +41,7 @@ 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); +time_t parse_timestamp (const char *timestamp, char **endp); u32 add_days_to_timestamp (u32 stamp, u16 days); const char *strtimevalue (u32 stamp); const char *strtimestamp (u32 stamp); /* GMT */ -- cgit v1.2.3