aboutsummaryrefslogtreecommitdiffstats
path: root/camel/broken-date-parser.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-12-22 03:51:58 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-12-22 03:51:58 +0800
commit3460dc5c49396e4270aaef3ed4063f59b5c91900 (patch)
treeaef917ec62099ffc58ce034242dbe838b58fc886 /camel/broken-date-parser.h
parent72d188ef338726b5e5f831ce8976e8c7a33af7f4 (diff)
downloadgsoc2013-evolution-3460dc5c49396e4270aaef3ed4063f59b5c91900.tar
gsoc2013-evolution-3460dc5c49396e4270aaef3ed4063f59b5c91900.tar.gz
gsoc2013-evolution-3460dc5c49396e4270aaef3ed4063f59b5c91900.tar.bz2
gsoc2013-evolution-3460dc5c49396e4270aaef3ed4063f59b5c91900.tar.lz
gsoc2013-evolution-3460dc5c49396e4270aaef3ed4063f59b5c91900.tar.xz
gsoc2013-evolution-3460dc5c49396e4270aaef3ed4063f59b5c91900.tar.zst
gsoc2013-evolution-3460dc5c49396e4270aaef3ed4063f59b5c91900.zip
Completely rewritten. It is now a load faster and a heck of a lot more
2001-12-21 Jeffrey Stedfast <fejj@ximian.com> * broken-date-parser.c (parse_broken_date): Completely rewritten. It is now a load faster and a heck of a lot more accurate, also now returns a time_t and sets the saveoffset variable rather than returning a new char* buffer for the normal camel date parser to re-parse. This saves a fair number of cpu cycles :-) * camel-mime-utils.c (header_decode_date): Cleanup the broken date parsing code. svn path=/trunk/; revision=15205
Diffstat (limited to 'camel/broken-date-parser.h')
-rw-r--r--camel/broken-date-parser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/broken-date-parser.h b/camel/broken-date-parser.h
index 6c1057ba22..b69d7636d7 100644
--- a/camel/broken-date-parser.h
+++ b/camel/broken-date-parser.h
@@ -20,11 +20,12 @@
*
*/
-#include <glib.h>
+
+#include <time.h>
/* prototypes for functions dealing with broken date formats */
-gchar *parse_broken_date (const gchar *datestr);
+time_t parse_broken_date (const char *datestr, int *saveoffset);