diff options
author | Werner Koch <[email protected]> | 2023-10-14 15:06:51 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-10-14 15:14:22 +0000 |
commit | a17363e992943244987dbab754b112c77d938b5d (patch) | |
tree | 51b2f749ed5c1dc67e937112cc3fef1728e9c024 /common/gettime.h | |
parent | gpgsm: Improvements for NDEF in the pkcs#12 parser (diff) | |
download | gnupg-a17363e992943244987dbab754b112c77d938b5d.tar.gz gnupg-a17363e992943244987dbab754b112c77d938b5d.zip |
common: New function scan_secondsstr.
* common/gettime.c (scan_secondsstr): New.
* common/t-gettime.c (test_scan_secondsstr):
(main): Call it.
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 4f7199f92..18f65ab1a 100644 --- a/common/gettime.h +++ b/common/gettime.h @@ -51,6 +51,7 @@ int gnupg_faked_time_p (void); u32 make_timestamp (void); char *elapsed_time_string (time_t since, time_t now); +u32 scan_secondsstr (const char *string); u32 scan_isodatestr (const char *string); int isotime_p (const char *string); int isotime_human_p (const char *string, int date_only); |