aboutsummaryrefslogtreecommitdiffstats
path: root/common/gettime.h
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-03-23 12:22:48 +0000
committerNeal H. Walfield <[email protected]>2015-03-23 18:58:28 +0000
commit81e83060856f02f6cfc7b48f8032e0cf14fc6c68 (patch)
tree43936069462ed8008f6b18cf2b05e297217e3311 /common/gettime.h
parentMove copy_stream function to misc.c. (diff)
downloadgnupg-81e83060856f02f6cfc7b48f8032e0cf14fc6c68.tar.gz
gnupg-81e83060856f02f6cfc7b48f8032e0cf14fc6c68.zip
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 <[email protected]>
Diffstat (limited to 'common/gettime.h')
-rw-r--r--common/gettime.h1
1 files changed, 1 insertions, 0 deletions
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 */