Function

Ideg_date_time_format_for_display

Declaration

char*
ide_g_date_time_format_for_display (
  GDateTime* self
)

Description

Helper function to create a human-friendly string describing approximately how long ago a GDateTime is.

Parameters

self

Type: GDateTime

A GDateTime.

The data is owned by the caller of the function.

Return value

Type: char*

A newly allocated string describing the date and time imprecisely such as “Yesterday”.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.