Function

PackageKitiso8601_from_date

since: 0.5.2

Declaration [src]

gchar*
pk_iso8601_from_date (
  const GDate* date
)

Description [src]

Convert a date into an ISO8601 data string.

Available since: 0.5.2

Parameters

date

Type: GDate

A GDate to convert.

The data is owned by the caller of the function.

Return value

Type: gchar*

If valid then a new ISO8601 date, else NULL.

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.