diff options
author | Neal H. Walfield <[email protected]> | 2015-03-23 12:22:48 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-03-23 18:58:28 +0000 |
commit | 81e83060856f02f6cfc7b48f8032e0cf14fc6c68 (patch) | |
tree | 43936069462ed8008f6b18cf2b05e297217e3311 /common/gettime.h | |
parent | Move copy_stream function to misc.c. (diff) | |
download | gnupg-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.h | 1 |
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 */ |