aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-time.h
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-10-13 21:00:29 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-10-13 21:00:29 +0800
commit46b36ddc5af420c903db28e8e1aa7c5c7b07f4b9 (patch)
tree9cc7756b93e51e5c9ba250e82164316e8778e3f3 /libempathy/empathy-time.h
parent72e5841e61bbbe883e407bf8d16868d99ab847cb (diff)
downloadgsoc2013-empathy-46b36ddc5af420c903db28e8e1aa7c5c7b07f4b9.tar
gsoc2013-empathy-46b36ddc5af420c903db28e8e1aa7c5c7b07f4b9.tar.gz
gsoc2013-empathy-46b36ddc5af420c903db28e8e1aa7c5c7b07f4b9.tar.bz2
gsoc2013-empathy-46b36ddc5af420c903db28e8e1aa7c5c7b07f4b9.tar.lz
gsoc2013-empathy-46b36ddc5af420c903db28e8e1aa7c5c7b07f4b9.tar.xz
gsoc2013-empathy-46b36ddc5af420c903db28e8e1aa7c5c7b07f4b9.tar.zst
gsoc2013-empathy-46b36ddc5af420c903db28e8e1aa7c5c7b07f4b9.zip
2007-10-13 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/empathy-chat-view.h: * libempathy-gtk/empathy-main-window.c: * libempathy-gtk/empathy-chat.c: * libempathy-gtk/empathy-chat-window.c: * libempathy-gtk/empathy-chat-view.c: * libempathy/empathy-log-manager.c: * libempathy/empathy-time.c: * libempathy/empathy-tp-chat.c: * libempathy/empathy-time.h: * libempathy/empathy-message.c: * libempathy/empathy-message.h: * libempathy/empathy-presence.c: * configure.ac: Don't use deprecated GtkTooltips API. Add commented out lines in configure.ac to disable GLib and GTK deprecated symbols. Replace EmpathyTime by time_t which is more appropriate for timestamps. * doc/*: Updated. git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@371 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy/empathy-time.h')
-rw-r--r--libempathy/empathy-time.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/libempathy/empathy-time.h b/libempathy/empathy-time.h
index debf784c0..560b4655a 100644
--- a/libempathy/empathy-time.h
+++ b/libempathy/empathy-time.h
@@ -33,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