Function

Ideg_time_span_to_label

Declaration

char*
ide_g_time_span_to_label (
  GTimeSpan span
)

Description

Creates a string describing the time span in hours, minutes, and seconds. For example, a time span of three and a half minutes would be “3:30”. 2 days, 3 hours, 6 minutes, and 20 seconds would be “51:06:20”.

Parameters

span

Type: GTimeSpan

The span of time.

Return value

Type: char*

A newly allocated string describing the time span.

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.