GNOME Bugzilla – Bug 416481
GDate API for friendly date strings
Last modified: 2007-03-16 04:26:51 UTC
It would be nice to have a g_data_get_* function to generate friendly data strings such as "Yesterday", "Today", "Two weeks ago", etc. Then the translations could all be done in glib. There must be some example implementations in various programs.
Mugshot has a sample, http://svn.mugshot.org/dumbhippo/trunk/client/common/hippo/hippo-basics.c hippo_format_time_ago() One thing about this though is that apps may tend to want this done slightly differently in different contexts.
*** This bug has been marked as a duplicate of 325064 ***