Function

Purpledate_format_full

Declaration [src]

const char*
purple_date_format_full (
  const tm* tm
)

Description [src]

Formats a time into the user’s preferred full date and time format.

The returned string is stored in a static buffer, so the result should be g_strdup()’d if it’s going to be kept.

Parameters

tm const tm*
 

The time to format, or NULL to use the current local time.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: const char*
 

The date and time, formatted as per the user’s settings. In the USA this is something like “Mon Feb 18 15:26:44 2013”

 The data is owned by the called function.
 The value is a NUL terminated UTF-8 string.