diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-07-17 05:26:12 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-07-17 05:26:12 +0800 |
commit | 55eb097681a9e016e4c5c8e99759c11b0e6a1de9 (patch) | |
tree | 403615ceacef972b8b4a2c9f9ae4a22a7b8237d5 /e-util/e-time-utils.h | |
parent | b3b1380f854e09cc4afe520053a930cd571696ef (diff) | |
download | gsoc2013-evolution-55eb097681a9e016e4c5c8e99759c11b0e6a1de9.tar gsoc2013-evolution-55eb097681a9e016e4c5c8e99759c11b0e6a1de9.tar.gz gsoc2013-evolution-55eb097681a9e016e4c5c8e99759c11b0e6a1de9.tar.bz2 gsoc2013-evolution-55eb097681a9e016e4c5c8e99759c11b0e6a1de9.tar.lz gsoc2013-evolution-55eb097681a9e016e4c5c8e99759c11b0e6a1de9.tar.xz gsoc2013-evolution-55eb097681a9e016e4c5c8e99759c11b0e6a1de9.tar.zst gsoc2013-evolution-55eb097681a9e016e4c5c8e99759c11b0e6a1de9.zip |
Generalized function for trying a number of strptime() formats on a
2001-07-16 Federico Mena Quintero <federico@ximian.com>
* e-time-utils.c (parse_with_strptime): Generalized function for
trying a number of strptime() formats on a string.
(e_time_parse_time): Use parse_with_strptime().
(e_time_parse_date): New function, analogous to the previous one,
but uses a number of date formats.
svn path=/trunk/; revision=11138
Diffstat (limited to 'e-util/e-time-utils.h')
-rw-r--r-- | e-util/e-time-utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/e-util/e-time-utils.h b/e-util/e-time-utils.h index 22fa8f8a7d..f6d85df5ac 100644 --- a/e-util/e-time-utils.h +++ b/e-util/e-time-utils.h @@ -24,6 +24,10 @@ typedef enum { ETimeParseStatus e_time_parse_date_and_time (const char *value, struct tm *result); +/* Tries to parse a string containing a date. */ +ETimeParseStatus e_time_parse_date (const char *value, + struct tm *result); + /* Tries to parse a string containing a time. */ ETimeParseStatus e_time_parse_time (const char *value, struct tm *result); |