Function

GLibDatenew_dmy

Declaration

GDate*
g_date_new_dmy (
  GDateDay day,
  GDateMonth month,
  GDateYear year
)

Description

Like g_date_new(), but also sets the value of the date. Assuming the day-month-year triplet you pass in represents an existing day, the returned date will be valid.

Parameters

day GDateDay
 

Day of the month.

month GDateMonth
 

Month of the year.

year GDateYear
 

Year.

Return value

Returns: GDate
 

A newly-allocated GDate initialized with day, month, and year.

 The caller of the function takes ownership of the data, and is responsible for freeing it.