]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-time.h
Updated.
[empathy.git] / libempathy / empathy-time.h
index 0989391cda63e6561fc8f1793e6c3dddf9eaa8cb..560b4655a87e84d00f7a5c427e9eb8e5378c5e25 100644 (file)
@@ -21,7 +21,9 @@
 #ifndef __EMPATHY_TIME_H__
 #define __EMPATHY_TIME_H__
 
+#ifndef __USE_XOPEN
 #define __USE_XOPEN
+#endif
 #include <time.h>
 
 #include <glib.h>
@@ -31,18 +33,15 @@ G_BEGIN_DECLS
 #define EMPATHY_TIME_FORMAT_DISPLAY_SHORT "%H:%M"
 #define EMPATHY_TIME_FORMAT_DISPLAY_LONG  "%a %d %b %Y"
 
-/* Note: Always in UTC. */
-typedef long EmpathyTime;
-
-EmpathyTime  empathy_time_get_current     (void);
-time_t      empathy_time_get_local_time  (struct tm   *tm);
-EmpathyTime  empathy_time_parse           (const gchar *str);
-EmpathyTime  empathy_time_parse_format    (const gchar *str,
-                                        const gchar *format);
-gchar      *empathy_time_to_string_utc   (EmpathyTime   t,
-                                        const gchar *format);
-gchar      *empathy_time_to_string_local (EmpathyTime   t,
-                                        const gchar *format);
+time_t  empathy_time_get_current     (void);
+time_t  empathy_time_get_local_time  (struct tm   *tm);
+time_t  empathy_time_parse           (const gchar *str);
+time_t  empathy_time_parse_format    (const gchar *str,
+                                     const gchar *format);
+gchar  *empathy_time_to_string_utc   (time_t       t,
+                                     const gchar *format);
+gchar  *empathy_time_to_string_local (time_t       t,
+                                     const gchar *format);
 
 G_END_DECLS