aboutsummaryrefslogtreecommitdiffstats
path: root/common/gettime.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-03-01 13:22:41 +0000
committerWerner Koch <[email protected]>2011-03-01 13:22:41 +0000
commitdfdda3b344e525f4fdb5e2c07ac63b52e501941f (patch)
tree763b777bdd2f8653889118a3203f6318ae3d15b8 /common/gettime.h
parentUpdate gpg-error.m4 and libgcrypt.m4 (diff)
downloadgnupg-dfdda3b344e525f4fdb5e2c07ac63b52e501941f.tar.gz
gnupg-dfdda3b344e525f4fdb5e2c07ac63b52e501941f.zip
Add new functions to convert iso time strings.
Diffstat (limited to 'common/gettime.h')
-rw-r--r--common/gettime.h3
1 files changed, 3 insertions, 0 deletions
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);