]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-time.h
account-settings: allow to change the service
[empathy.git] / libempathy / empathy-time.h
index 224b25cbf52da56e6cbc19763eddba9f79eb486b..3a22adeee20bd98ac8a0351bbf2b80918f67bd5f 100644 (file)
 
 G_BEGIN_DECLS
 
-#define EMPATHY_TIME_FORMAT_DISPLAY_SHORT "%H:%M"
-#define EMPATHY_TIME_FORMAT_DISPLAY_LONG  "%a %d %b %Y"
+/*
+ * Translators: use your locale preferred time format.
+ * The fields follow the strftime standard:
+ * look at the manual if you need help (man strftime)
+ */
+#define EMPATHY_TIME_FORMAT_DISPLAY_SHORT _("%H:%M")
+#define EMPATHY_DATE_FORMAT_DISPLAY_SHORT  _("%a %d %b %Y")
+#define EMPATHY_TIME_DATE_FORMAT_DISPLAY_SHORT _("%a %d %b %Y, %H:%M")
 
-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);
-gchar  *empathy_time_to_string_utc   (time_t       t,
+gint64  empathy_time_get_current     (void);
+gchar  *empathy_time_to_string_utc   (gint64       t,
                                      const gchar *format);
-gchar  *empathy_time_to_string_local (time_t       t,
+gchar  *empathy_time_to_string_local (gint64       t,
                                      const gchar *format);
-gchar  *empathy_time_to_string_relative (time_t t);
+gchar  *empathy_time_to_string_relative (gint64 t);
+gchar *empathy_duration_to_string (guint seconds);
 
 G_END_DECLS