Function

Birbdate_time_set

since: 0.1

Declaration [src]

gboolean
birb_date_time_set (
  GDateTime** datetime_ptr,
  GDateTime* new_datetime
)

Description [src]

Updates datetime_ptr to point to new_datetime.

If datetime_ptr had a previous reference, it will be un-referenced.

If new_datetime is not NULL, a new reference will be added when it is assigned to datetime_ptr.

datetime_ptr can not be NULL but may point to a NULL value.

Available since: 0.1

Parameters

datetime_ptr

Type: GDateTime

A pointer to a GDateTime reference.

The argument will be modified by the function.
The caller of the function takes ownership of the returned data, and is responsible for freeing it.
new_datetime

Type: GDateTime

The new date time to set.

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

Return value

Type: gboolean

TRUE if the value of datetime_ptr changed, otherwise FALSE.