diff src/util.h @ 8577:599d6ac9bbfe

[gaim-migrate @ 9326] a jabber tweak i forgot to commit a fix for logging times wrt daylight savings time re-fix html logging timestamp sizes, after the syslog merge a cosmetic change to the log window committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 04 Apr 2004 18:27:45 +0000
parents 16485e87b7bb
children 56360561af5e
line wrap: on
line diff
--- a/src/util.h	Sun Apr 04 15:08:26 2004 +0000
+++ b/src/util.h	Sun Apr 04 18:27:45 2004 +0000
@@ -183,6 +183,16 @@
 time_t gaim_time_build(int year, int month, int day, int hour,
 					   int min, int sec);
 
+/**
+ * Parses a timestamp in jabber or ISO8601 format and returns a time_t.
+ *
+ * @param timestamp The timestamp
+ * @param utc Assume UTC if no timezone specified
+ *
+ * @return A time_t.
+ */
+time_t gaim_str_to_time(const char *timestamp, gboolean utc);
+
 /*@}*/