nbtk-utils

nbtk-utils — General utility functions useful for GUIs

Synopsis

gchar *             nbtk_utils_format_time              (GTimeVal *time_);

Description

Utilities useful for creating user interfaces.

Details

nbtk_utils_format_time ()

gchar *             nbtk_utils_format_time              (GTimeVal *time_);

Generates a string describing the time given in time_ using colloquial language suitable for display to the user. Examples of what might be returned are "A few minutes ago" or "Yesterday".

time_ :

a time value

Returns :

a string. Free with g_free().