aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-time.c
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.c
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.c')
-rw-r--r--libempathy/empathy-time.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libempathy/empathy-time.c b/libempathy/empathy-time.c
index 0851add49..9eec8adc0 100644
--- a/libempathy/empathy-time.c
+++ b/libempathy/empathy-time.c
@@ -30,7 +30,7 @@
/* Note: EmpathyTime is always in UTC. */
-EmpathyTime
+time_t
empathy_time_get_current (void)
{
return time (NULL);
@@ -63,7 +63,7 @@ empathy_time_get_local_time (struct tm *tm)
/* The format is: "20021209T23:51:30" and is in UTC. 0 is returned on
* failure. The alternative format "20021209" is also accepted.
*/
-EmpathyTime
+time_t
empathy_time_parse (const gchar *str)
{
struct tm tm;
@@ -88,8 +88,8 @@ empathy_time_parse (const gchar *str)
/* Converts the UTC timestamp to a string, also in UTC. Returns NULL on failure. */
gchar *
-empathy_time_to_string_utc (EmpathyTime t,
- const gchar *format)
+empathy_time_to_string_utc (time_t t,
+ const gchar *format)
{
gchar stamp[128];
struct tm *tm;
@@ -106,8 +106,8 @@ empathy_time_to_string_utc (EmpathyTime t,
/* Converts the UTC timestamp to a string, in local time. Returns NULL on failure. */
gchar *
-empathy_time_to_string_local (EmpathyTime t,
- const gchar *format)
+empathy_time_to_string_local (time_t t,
+ const gchar *format)
{
gchar stamp[128];
struct tm *tm;