Structure.getDate

Sets the date pointed to by @value corresponding to the date of the given field. Caller is responsible for making sure the field exists and has the correct type.

On success @value will point to a newly-allocated copy of the date which should be freed with g_date_free() when no longer needed (note: this is inconsistent with e.g. gst_structure_get_string() which doesn't return a copy of the string).

class Structure
bool
getDate
(
string fieldname
,)

Parameters

fieldname string

the name of a field

value Date

a pointer to a #GDate to set

Return Value

Type: bool

%TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain a data, this function returns %FALSE.

Meta